diff options
| author | Aymeric Augustin | 2013-11-24 10:42:43 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-24 11:01:44 +0100 | 
| commit | fe3df822111d3b56000deca354b0bceed7bde9cc (patch) | |
| tree | 8fe21689037cd975f83e7f70480b96e0ba2e3b6a /tests/panels/test_profiling.py | |
| parent | 7d24008ac3d70796c1502215c665311d2f21d6fd (diff) | |
| download | django-debug-toolbar-fe3df822111d3b56000deca354b0bceed7bde9cc.tar.bz2 | |
Rename all panels consistently.
Enforce absolute imports to avoid clashing with built-in package names.
Thanks Jannis for his feedback.
Diffstat (limited to 'tests/panels/test_profiling.py')
| -rw-r--r-- | tests/panels/test_profiling.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/tests/panels/test_profiling.py b/tests/panels/test_profiling.py index f6bb7d3..7ca7e7b 100644 --- a/tests/panels/test_profiling.py +++ b/tests/panels/test_profiling.py @@ -1,4 +1,4 @@ -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals  from django.contrib.auth.models import User  from django.db import IntegrityError, transaction @@ -17,12 +17,12 @@ from ..base import BaseTestCase  from ..views import regular_view -@override_settings(DEBUG_TOOLBAR_PANELS=['debug_toolbar.panels.profiling.ProfilingDebugPanel']) +@override_settings(DEBUG_TOOLBAR_PANELS=['debug_toolbar.panels.profiling.ProfilingPanel'])  class ProfilingPanelTestCase(BaseTestCase):      def setUp(self):          super(ProfilingPanelTestCase, self).setUp() -        self.panel = self.toolbar.get_panel_by_id('ProfilingDebugPanel') +        self.panel = self.toolbar.get_panel_by_id('ProfilingPanel')      def _test_render_with_or_without_line_profiler(self):          self.panel.process_view(self.request, regular_view, ('profiling',), {}) @@ -44,7 +44,7 @@ class ProfilingPanelTestCase(BaseTestCase):  @override_settings(DEBUG=True, -                   DEBUG_TOOLBAR_PANELS=['debug_toolbar.panels.profiling.ProfilingDebugPanel']) +                   DEBUG_TOOLBAR_PANELS=['debug_toolbar.panels.profiling.ProfilingPanel'])  class ProfilingPanelIntegrationTestCase(TestCase):      def test_view_executed_once(self): | 
