aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.py
diff options
context:
space:
mode:
authorbkonkle2011-09-09 10:16:21 -0700
committerbkonkle2011-09-09 10:16:21 -0700
commitd2248d7a8532ed6758b08282f9327e2926aebe4d (patch)
tree00824e0f924b234b2e081a830d8553da2e542633 /tests/tests.py
parent7047361fe2248d62927f69ca74f56cd3ea963e8e (diff)
downloaddjango-debug-toolbar-d2248d7a8532ed6758b08282f9327e2926aebe4d.tar.bz2
Set INTERNAL_IPS and DEBUG on the middleware test
Diffstat (limited to 'tests/tests.py')
-rw-r--r--tests/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tests.py b/tests/tests.py
index 60620bb..40722ba 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -49,7 +49,8 @@ class DebugToolbarTestCase(BaseTestCase):
urls = 'tests.urls'
def test_middleware(self):
- resp = self.client.get('/execute_sql/')
+ with Settings(INTERNAL_IPS=['127.0.0.1'], DEBUG=True):
+ resp = self.client.get('/execute_sql/')
self.assertEquals(resp.status_code, 200)
def test_show_toolbar_DEBUG(self):