[1.8.x] Refs #24652 -- Converted a template test to avoid executing queries.
Backport of 8bf1449edb
from master
This commit is contained in:
parent
e846ea0649
commit
3ab3be4b5d
|
@ -85,8 +85,8 @@ class TemplateTests(SimpleTestCase):
|
||||||
"""
|
"""
|
||||||
#23060 -- Test non-ASCII model representation in debug output.
|
#23060 -- Test non-ASCII model representation in debug output.
|
||||||
"""
|
"""
|
||||||
Group.objects.create(name="清風")
|
group = Group(name="清風")
|
||||||
c1 = Context({"objs": Group.objects.all()})
|
c1 = Context({"objs": [group]})
|
||||||
t1 = Template('{% debug %}')
|
t1 = Template('{% debug %}')
|
||||||
self.assertIn("清風", t1.render(c1))
|
self.assertIn("清風", t1.render(c1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue