aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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):