Skip to content

Commit 958e9a7

Browse files
committed
Django 1.10 compat: Define TEMPLATES to have tests pick up templates
1 parent 2d84b9b commit 958e9a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/conftest.py

+9
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ def django_testdir(request, testdir, monkeypatch):
7474
'django.contrib.messages.middleware.MessageMiddleware',
7575
)
7676
77+
TEMPLATES = [
78+
{
79+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
80+
'DIRS': [],
81+
'APP_DIRS': True,
82+
'OPTIONS': {},
83+
},
84+
]
85+
7786
%(extra_settings)s
7887
''') % {
7988
'db_settings': repr(db_settings),

0 commit comments

Comments
 (0)