Skip to content

Commit cb45e18

Browse files
committed
Test timer panel is first in order
1 parent e029174 commit cb45e18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ def test_concurrent_async_sql_page(self):
297297
len(response.toolbar.get_panel_by_id("SQLPanel").get_stats()["queries"]), 2
298298
)
299299

300+
def test_timer_panel_first(self):
301+
toolbar = DebugToolbar(self.request, self.get_response)
302+
self.assertEqual(toolbar.enabled_panels[0].panel_id, "TimerPanel")
303+
300304

301305
@override_settings(DEBUG=True)
302306
class DebugToolbarIntegrationTestCase(IntegrationTestCase):

0 commit comments

Comments
 (0)