Skip to content

Commit edb0b77

Browse files
browniebrokenedbat
authored andcommitted
test: fix build against djangotip
Django recently enabled the cached template loader by default in development. This was added in: django/django@bf7c51a As a result, some tests started failing when the whole test suite was run, but not when they were run individually. We can fix this by setting the template loaders in our test settings.
1 parent 70fae43 commit edb0b77

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

django_coverage_plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def lines(self):
365365
continue
366366

367367
if extends and not inblock:
368-
# In an inheriting tempalte, ignore all tags outside of
368+
# In an inheriting template, ignore all tags outside of
369369
# blocks.
370370
continue
371371

tests/plugin_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def test_settings():
4545
'DIRS': ['templates'], # where the tests put things.
4646
'OPTIONS': {
4747
'debug': True,
48+
'loaders': [
49+
'django.template.loaders.filesystem.Loader',
50+
]
4851
},
4952
},
5053
],

0 commit comments

Comments
 (0)