Kaydet (Commit) 3ab3be4b authored tarafından Simon Charette's avatar Simon Charette

[1.8.x] Refs #24652 -- Converted a template test to avoid executing queries.

Backport of 8bf1449e from master
üst e846ea06
......@@ -85,8 +85,8 @@ class TemplateTests(SimpleTestCase):
"""
#23060 -- Test non-ASCII model representation in debug output.
"""
Group.objects.create(name="清風")
c1 = Context({"objs": Group.objects.all()})
group = Group(name="清風")
c1 = Context({"objs": [group]})
t1 = Template('{% debug %}')
self.assertIn("清風", t1.render(c1))
......
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