From 5360a2ba9c5b866ce2502aa43606b2647acea63b Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 15 Dec 2013 13:06:16 +0100 Subject: Properly disable instrumentation for the template panel. It's important to disconnect the signal at the end of a request because the toolbar now stores panels for past request. Fix #491 (presumably). --- tests/panels/test_template.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/panels/test_template.py b/tests/panels/test_template.py index 72e90c0..8a36f06 100644 --- a/tests/panels/test_template.py +++ b/tests/panels/test_template.py @@ -15,11 +15,13 @@ class TemplatesPanelTestCase(BaseTestCase): def setUp(self): super(TemplatesPanelTestCase, self).setUp() self.panel = self.toolbar.get_panel_by_id('TemplatesPanel') + self.panel.enable_instrumentation() self.sql_panel = self.toolbar.get_panel_by_id('SQLPanel') self.sql_panel.enable_instrumentation() def tearDown(self): self.sql_panel.disable_instrumentation() + self.panel.disable_instrumentation() super(TemplatesPanelTestCase, self).tearDown() def test_queryset_hook(self): -- cgit v1.2.3