Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 659b5678fcb89417ce1967bc590fdd693f906e69 1 parent bb2c58c
@coder9042 coder9042 authored claudep committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  tests/template_tests/tests.py
View
2  tests/template_tests/tests.py
@@ -641,6 +641,8 @@ def render(self, test_template, vals):
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 ################################################

0 comments on commit 659b567

Please sign in to comment.
Something went wrong with that request. Please try again.