summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/syntax_tests/test_cache.py')
-rw-r--r--tests/template_tests/syntax_tests/test_cache.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/template_tests/syntax_tests/test_cache.py b/tests/template_tests/syntax_tests/test_cache.py
index f088510d5d..2039e7808c 100644
--- a/tests/template_tests/syntax_tests/test_cache.py
+++ b/tests/template_tests/syntax_tests/test_cache.py
@@ -6,6 +6,10 @@ from ..utils import setup
class CacheTagTests(SimpleTestCase):
+ libraries = {
+ 'cache': 'django.templatetags.cache',
+ 'custom': 'template_tests.templatetags.custom',
+ }
def tearDown(self):
cache.clear()
@@ -121,7 +125,7 @@ class CacheTests(SimpleTestCase):
@classmethod
def setUpClass(cls):
- cls.engine = Engine()
+ cls.engine = Engine(libraries={'cache': 'django.templatetags.cache'})
super(CacheTests, cls).setUpClass()
def test_cache_regression_20130(self):