summaryrefslogtreecommitdiff
path: root/tests/i18n/patterns/tests.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/i18n/patterns/tests.py
parentcf0fd65ed42d5d4f0585da413db4b1cf7c6b0d1a (diff)
Deprecated TEMPLATE_DIRS.
Diffstat (limited to 'tests/i18n/patterns/tests.py')
-rw-r--r--tests/i18n/patterns/tests.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/i18n/patterns/tests.py b/tests/i18n/patterns/tests.py
index a4049fca13..2bf770434b 100644
--- a/tests/i18n/patterns/tests.py
+++ b/tests/i18n/patterns/tests.py
@@ -21,9 +21,6 @@ class PermanentRedirectLocaleMiddleWare(LocaleMiddleware):
LOCALE_PATHS=(
os.path.join(os.path.dirname(upath(__file__)), 'locale'),
),
- TEMPLATE_DIRS=(
- os.path.join(os.path.dirname(upath(__file__)), 'templates'),
- ),
LANGUAGE_CODE='en-us',
LANGUAGES=(
('nl', 'Dutch'),
@@ -35,6 +32,15 @@ class PermanentRedirectLocaleMiddleWare(LocaleMiddleware):
'django.middleware.common.CommonMiddleware',
),
ROOT_URLCONF='i18n.patterns.urls.default',
+ TEMPLATES=[{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [os.path.join(os.path.dirname(upath(__file__)), 'templates')],
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.i18n',
+ ],
+ },
+ }],
)
class URLTestCaseBase(TestCase):
"""