diff options
Diffstat (limited to 'tests/i18n/patterns/tests.py')
| -rw-r--r-- | tests/i18n/patterns/tests.py | 12 |
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): """ |
