From 655f52491505932ef04264de2bce21a03f3a7cd0 Mon Sep 17 00:00:00 2001 From: Preston Timmons Date: Fri, 8 May 2015 15:10:36 -0500 Subject: 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. --- tests/template_tests/syntax_tests/test_invalid_string.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/template_tests/syntax_tests/test_invalid_string.py') diff --git a/tests/template_tests/syntax_tests/test_invalid_string.py b/tests/template_tests/syntax_tests/test_invalid_string.py index 2bb8c71fd1..18520aa7bf 100644 --- a/tests/template_tests/syntax_tests/test_invalid_string.py +++ b/tests/template_tests/syntax_tests/test_invalid_string.py @@ -4,6 +4,7 @@ from ..utils import setup class InvalidStringTests(SimpleTestCase): + libraries = {'i18n': 'django.templatetags.i18n'} @setup({'invalidstr01': '{{ var|default:"Foo" }}'}) def test_invalidstr01(self): -- cgit v1.3