mirror of
https://github.com/django/django.git
synced 2025-01-16 05:12:23 +00:00
Fixed #22184 -- Allowed template_tests.tests to be run isolated
This commit is contained in:
parent
bb2c58c701
commit
659b5678fc
@ -641,6 +641,8 @@ class TemplateTests(TestCase):
|
|||||||
def get_template_tests(self):
|
def get_template_tests(self):
|
||||||
# SYNTAX --
|
# SYNTAX --
|
||||||
# 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class)
|
# '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__)))
|
basedir = os.path.dirname(os.path.abspath(upath(__file__)))
|
||||||
tests = {
|
tests = {
|
||||||
### BASIC SYNTAX ################################################
|
### BASIC SYNTAX ################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user