Skip to content

Commit a96a58e

Browse files
committed
Fix failing test
Django was looking for a Jinja template in the Django template directory because the `DIR` value was kept.
1 parent ae1bb03 commit a96a58e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_nav.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,10 @@ def test_get_template_engines(engine, expected):
158158
class TemplateEngineNav(Nav):
159159
template_name = (
160160
"tests/dummy_nav.html"
161-
if engine.endswith("DjangoTemplates")
162-
else "tests/jinja2/dummy_nav.html"
163161
)
164162
items = [...]
165163

166-
with override_settings(TEMPLATES=[dict(settings.TEMPLATES[0], BACKEND=engine)]):
164+
with override_settings(TEMPLATES=[dict(settings.TEMPLATES[0], BACKEND=engine, DIRS=[])]):
167165
template = TemplateEngineNav().get_template()
168166

169167
assert isinstance(template, expected)

0 commit comments

Comments
 (0)