Skip to content

Commit

Permalink
Update pytest_django/plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Sep 2, 2024
1 parent 8fd578b commit dd0bf18
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pytest_django/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ def _get_origin() -> str | None:
frameinfo = reduce(
lambda x, y: y if y.function == "render" and "base.py" in y.filename else x, stack
)
# finding only the frame locals in all frame members
# ``django.template.base.Template``
template = frameinfo.frame.f_locals["self"]

Check warning on line 690 in pytest_django/plugin.py

View check run for this annotation

Codecov / codecov/patch

pytest_django/plugin.py#L690

Added line #L690 was not covered by tests
if isinstance(template, Template):
Expand Down

0 comments on commit dd0bf18

Please sign in to comment.