summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_response.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/test_response.py')
-rw-r--r--tests/template_tests/test_response.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py
index ab01da5804..6ae5457c98 100644
--- a/tests/template_tests/test_response.py
+++ b/tests/template_tests/test_response.py
@@ -208,10 +208,13 @@ class SimpleTemplateResponseTest(SimpleTestCase):
self.assertEqual(unpickled_response.cookies['key'].value, 'value')
-@override_settings(
- TEMPLATE_CONTEXT_PROCESSORS=[test_processor_name],
- TEMPLATE_DIRS=(os.path.join(os.path.dirname(upath(__file__)), 'templates')),
-)
+@override_settings(TEMPLATES=[{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'templates')],
+ 'OPTIONS': {
+ 'context_processors': [test_processor_name],
+ },
+}])
class TemplateResponseTest(SimpleTestCase):
def setUp(self):