Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtford90 committed Jun 10, 2014
1 parent 7b895a0 commit 7c22d07
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ docs/_build/
dist
.idea
*db.sqlite*

# Vagrant
.vagrant
8 changes: 8 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.network "private_network", ip: "192.168.50.11"
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.ssh.forward_agent = true
end
7 changes: 7 additions & 0 deletions django_silky/silk/tests/test_view_sql_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@

from django.core.urlresolvers import reverse
from django.test import TestCase
from silk.config import SilkyConfig

from silk.views.sql_detail import SQLDetailView

from silk.tests import MockSuite


class TestViewSQLDetail(TestCase):

@classmethod
def setUpClass(cls):
SilkyConfig().SILKY_AUTHENTICATION = False
SilkyConfig().SILKY_AUTHORISATION = False

def test_allowed_file_paths_nothing_specified(self):
"""by default we dont display any source, and it should return correctly"""
request = MockSuite().mock_request()
Expand Down

0 comments on commit 7c22d07

Please sign in to comment.