Fixed "no such test method" error in template_tests.
Without this patch, you couldn't run an individual test case in template_tests. Refs #23768
This commit is contained in:
parent
b872134bfc
commit
adacbd64a0
|
@ -52,6 +52,7 @@ def setup(templates, *args):
|
||||||
('django.template.loaders.locmem.Loader', templates),
|
('django.template.loaders.locmem.Loader', templates),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
@functools.wraps(func)
|
||||||
def inner(self):
|
def inner(self):
|
||||||
loader = Engine.get_default().template_loaders[0]
|
loader = Engine.get_default().template_loaders[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue