aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_integration.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-16 09:47:14 +0100
committerAymeric Augustin2013-11-16 10:10:09 +0100
commit71a2c1237de8ed759c3ba415c8bfd91b62adf193 (patch)
tree00bc509a00075a0a9266832ff054d9a2e80b9f6f /tests/test_integration.py
parent6334983458abd4380c21275d1229527778cf93a6 (diff)
downloaddjango-debug-toolbar-71a2c1237de8ed759c3ba415c8bfd91b62adf193.tar.bz2
Clean up DebugToolbar class, especially panels handling.
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 412b14b..1885b35 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -8,7 +8,6 @@ from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
from debug_toolbar.middleware import DebugToolbarMiddleware, show_toolbar
-from debug_toolbar.panels.request_vars import RequestVarsDebugPanel
from .base import BaseTestCase
from .views import regular_view
@@ -36,7 +35,7 @@ class DebugToolbarTestCase(BaseTestCase):
def _resolve_stats(self, path):
# takes stats from RequestVars panel
self.request.path = path
- panel = self.toolbar.get_panel(RequestVarsDebugPanel)
+ panel = self.toolbar.get_panel_by_id('RequestVarsDebugPanel')
panel.process_request(self.request)
panel.process_response(self.request, self.response)
return self.toolbar.stats['requestvars']