Skip to content

Commit

Permalink
Fix tags missing when imported during collection
Browse files Browse the repository at this point in the history
(cherry picked from commit 06d4dd8)
  • Loading branch information
izquierdo authored and nedbat committed May 25, 2021
1 parent 504ca59 commit 6622791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_coverage_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def check_debug():
return False
if not hasattr(django.template.backends.django, "DjangoTemplates"):
raise DjangoTemplatePluginException("Can't use non-Django templates.")
if not django.template.engines._engines:
return False

for engine in django.template.engines.all():
if not isinstance(engine, django.template.backends.django.DjangoTemplates):
Expand Down

0 comments on commit 6622791

Please sign in to comment.