diff options
| author | David Cramer | 2011-05-26 12:43:51 -0700 | 
|---|---|---|
| committer | David Cramer | 2011-05-26 12:43:51 -0700 | 
| commit | 34d03283327d58342f0c1d72ee7bb7d029dc8815 (patch) | |
| tree | 9783d1469368a45f9f0630d3c1a895c9eae261e5 /debug_toolbar/tests/tests.py | |
| parent | 3719bbec31a085f9a91e58cdc1ebd2771f3c8ea5 (diff) | |
| download | django-debug-toolbar-34d03283327d58342f0c1d72ee7bb7d029dc8815.tar.bz2 | |
Update TEST check to correct behavior (dont show toolbar under TEST)
Diffstat (limited to 'debug_toolbar/tests/tests.py')
| -rw-r--r-- | debug_toolbar/tests/tests.py | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/tests/tests.py b/debug_toolbar/tests/tests.py index 83cc9dc..3fc2aff 100644 --- a/debug_toolbar/tests/tests.py +++ b/debug_toolbar/tests/tests.py @@ -65,12 +65,12 @@ class DebugToolbarTestCase(BaseTestCase):          middleware = DebugToolbarMiddleware() -        with Settings(TEST=True): -            self.assertTrue(middleware._show_toolbar(request)) - -        with Settings(TEST=False): +        with Settings(TEST=True, DEBUG=True):              self.assertFalse(middleware._show_toolbar(request)) +        with Settings(TEST=False, DEBUG=True): +            self.assertTrue(middleware._show_toolbar(request)) +      def test_show_toolbar_INTERNAL_IPS(self):          request = self.request  | 
