Loading tests/template_tests/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -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 ################################################ Loading Loading
tests/template_tests/tests.py +2 −0 Original line number Diff line number Diff line Loading @@ -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 ################################################ Loading