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_width_ratio.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/template_tests/syntax_tests/test_width_ratio.py') diff --git a/tests/template_tests/syntax_tests/test_width_ratio.py b/tests/template_tests/syntax_tests/test_width_ratio.py index 9799b7d6ab..8206b83c58 100644 --- a/tests/template_tests/syntax_tests/test_width_ratio.py +++ b/tests/template_tests/syntax_tests/test_width_ratio.py @@ -6,6 +6,7 @@ from ..utils import setup class WidthRatioTagTests(SimpleTestCase): + libraries = {'custom': 'template_tests.templatetags.custom'} @setup({'widthratio01': '{% widthratio a b 0 %}'}) def test_widthratio01(self): -- cgit v1.3