From f1c4b2235a861c3411826eaf1a5d4f51469ac9c0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 6 Feb 2020 00:27:32 -0800 Subject: [PATCH] tests: Allow adding test templates Reviewed-by: James Valleroy --- plinth/tests/data/django_test_settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plinth/tests/data/django_test_settings.py b/plinth/tests/data/django_test_settings.py index c0299fb8a..1d1ed16b0 100644 --- a/plinth/tests/data/django_test_settings.py +++ b/plinth/tests/data/django_test_settings.py @@ -59,3 +59,9 @@ MIDDLEWARE = ( ROOT_URLCONF = 'plinth.tests.data.urls' SECRET_KEY = 'django_tests_secret_key' + +TEMPLATES = [{ + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'APP_DIRS': True, + 'DIRS': ['plinth/tests/data/templates/'], +}]