Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 19, 2023
1 parent 000d4e8 commit c7a13da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/panels/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,13 @@ def test_empty_context(self):
)

def test_lazyobject(self):
response = self.panel.process_request(self.request)
self.panel.process_request(self.request)
t = Template("")
c = Context({"lazy": SimpleLazyObject(lambda: "lazy_value")})
t.render(c)
self.assertNotIn("lazy_value", self.panel.content)



@override_settings(
DEBUG=True, DEBUG_TOOLBAR_PANELS=["debug_toolbar.panels.templates.TemplatesPanel"]
)
Expand Down

0 comments on commit c7a13da

Please sign in to comment.