summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnubhav Joshi <anubhav9042@gmail.com>2014-03-15 12:33:04 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-15 12:34:11 +0100
commit659b5678fcb89417ce1967bc590fdd693f906e69 (patch)
tree5aa8568cc02ecd4c9120abdcb8c744bf7ba67f43
parentbb2c58c70133b3a03437e7d45510b062cb31b36c (diff)
Fixed #22184 -- Allowed template_tests.tests to be run isolated
-rw-r--r--tests/template_tests/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index c277fcc036..1b38c1e112 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -641,6 +641,8 @@ class TemplateTests(TestCase):
def get_template_tests(self):
# SYNTAX --
# 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class)
+ # This import is necessary when tests are run isolated:
+ from .templatetags import custom
basedir = os.path.dirname(os.path.abspath(upath(__file__)))
tests = {
### BASIC SYNTAX ################################################