summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_response.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-12-17 22:51:42 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-12-28 17:02:30 +0100
commitd3205e3e2eb0202e7bdffaee3e2a80ad444b1ca2 (patch)
tree11cc72ef84a3c35a5736de34b01bd52106fce08f /tests/template_tests/test_response.py
parentcf0fd65ed42d5d4f0585da413db4b1cf7c6b0d1a (diff)
Deprecated TEMPLATE_DIRS.
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):