summaryrefslogtreecommitdiff
path: root/tests/context_processors
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-12-17 23:36:32 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-12-28 17:02:31 +0100
commit9eb4f28e89692440e01c40a179a0b2111f4f0e04 (patch)
tree4367c2bbb5144864a7fc322d1d86c6158938020f /tests/context_processors
parentd3205e3e2eb0202e7bdffaee3e2a80ad444b1ca2 (diff)
downloaddjango-9eb4f28e89692440e01c40a179a0b2111f4f0e04.tar.gz
Deprecated TEMPLATE_CONTEXT_PROCESSORS.
Diffstat (limited to 'tests/context_processors')
-rw-r--r--tests/context_processors/tests.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/context_processors/tests.py b/tests/context_processors/tests.py
index 7a0d8220a8..d7c7390189 100644
--- a/tests/context_processors/tests.py
+++ b/tests/context_processors/tests.py
@@ -6,7 +6,15 @@ from django.test import TestCase, override_settings
@override_settings(
ROOT_URLCONF='context_processors.urls',
- TEMPLATE_CONTEXT_PROCESSORS=('django.template.context_processors.request',),
+ TEMPLATES=[{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.request',
+ ],
+ },
+ }],
)
class RequestContextProcessorTests(TestCase):
"""
@@ -42,7 +50,15 @@ class RequestContextProcessorTests(TestCase):
DEBUG=True,
INTERNAL_IPS=('127.0.0.1',),
ROOT_URLCONF='context_processors.urls',
- TEMPLATE_CONTEXT_PROCESSORS=('django.template.context_processors.debug',),
+ TEMPLATES=[{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ ],
+ },
+ }],
)
class DebugContextProcessorTests(TestCase):
"""