Kaydet (Commit) 659b5678 authored tarafından Anubhav Joshi's avatar Anubhav Joshi Kaydeden (comit) Claude Paroz

Fixed #22184 -- Allowed template_tests.tests to be run isolated

üst bb2c58c7
......@@ -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 ################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment