Skip to content

Commit

Permalink
Fix bug with test_cum_time_threshold profiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Sep 11, 2022
1 parent 2c100cb commit b75a3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/panels/test_profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_insert_content(self):
# ensure the panel renders correctly.
content = self.panel.content
self.assertIn("regular_view", content)
self.assertIn("get_template", content)
self.assertIn("render", content)
self.assertValidHTML(content)

@override_settings(DEBUG_TOOLBAR_CONFIG={"PROFILER_THRESHOLD_RATIO": 1})
Expand All @@ -47,7 +47,7 @@ def test_cum_time_threshold(self):
# ensure the panel renders but doesn't include our function.
content = self.panel.content
self.assertIn("regular_view", content)
self.assertNotIn("get_template", content)
self.assertNotIn("render", content)
self.assertValidHTML(content)

def test_listcomp_escaped(self):
Expand Down

0 comments on commit b75a3bc

Please sign in to comment.