summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_i18n.py
diff options
context:
space:
mode:
authorPreston Timmons <prestontimmons@gmail.com>2015-05-08 15:10:36 -0500
committerPreston Timmons <prestontimmons@gmail.com>2015-05-21 09:12:06 -0500
commit655f52491505932ef04264de2bce21a03f3a7cd0 (patch)
treec38eca24b887466fc2385fc773ff34247567c732 /tests/template_tests/syntax_tests/test_i18n.py
parent7b8008a078ffdfd18ebbe78fecbb92cdddf2f304 (diff)
Fixed #17085, #24783 -- Refactored template library registration.
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
Diffstat (limited to 'tests/template_tests/syntax_tests/test_i18n.py')
-rw-r--r--tests/template_tests/syntax_tests/test_i18n.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/template_tests/syntax_tests/test_i18n.py b/tests/template_tests/syntax_tests/test_i18n.py
index da53a8c279..1d0f83478a 100644
--- a/tests/template_tests/syntax_tests/test_i18n.py
+++ b/tests/template_tests/syntax_tests/test_i18n.py
@@ -10,6 +10,10 @@ from ..utils import setup
class I18nTagTests(SimpleTestCase):
+ libraries = {
+ 'custom': 'template_tests.templatetags.custom',
+ 'i18n': 'django.templatetags.i18n',
+ }
@setup({'i18n01': '{% load i18n %}{% trans \'xxxyyyxxx\' %}'})
def test_i18n01(self):