Skip to content

Commit 6622791

Browse files
izquierdonedbat
authored andcommitted
Fix tags missing when imported during collection
(cherry picked from commit 06d4dd8)
1 parent 504ca59 commit 6622791

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

django_coverage_plugin/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def check_debug():
7878
return False
7979
if not hasattr(django.template.backends.django, "DjangoTemplates"):
8080
raise DjangoTemplatePluginException("Can't use non-Django templates.")
81+
if not django.template.engines._engines:
82+
return False
8183

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

0 commit comments

Comments
 (0)