diff options
| author | bkonkle | 2011-09-09 10:16:21 -0700 | 
|---|---|---|
| committer | bkonkle | 2011-09-09 10:16:21 -0700 | 
| commit | d2248d7a8532ed6758b08282f9327e2926aebe4d (patch) | |
| tree | 00824e0f924b234b2e081a830d8553da2e542633 /tests/tests.py | |
| parent | 7047361fe2248d62927f69ca74f56cd3ea963e8e (diff) | |
| download | django-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.py | 3 | 
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): | 
