Skip to content

Commit 06d4dd8

Browse files
committed
Fix tags missing when imported during collection
1 parent 0072737 commit 06d4dd8

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
@@ -75,6 +75,8 @@ def check_debug():
7575
return False
7676
if not hasattr(django.template.backends.django, "DjangoTemplates"):
7777
raise DjangoTemplatePluginException("Can't use non-Django templates.")
78+
if not django.template.engines._engines:
79+
return False
7880

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

0 commit comments

Comments
 (0)