Kaydet (Commit) 8bf1449e authored tarafından Simon Charette's avatar Simon Charette

Refs #24652 -- Converted a template test to avoid executing queries.

üst 3db21c35
...@@ -115,8 +115,8 @@ class TemplateTests(SimpleTestCase): ...@@ -115,8 +115,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 = Engine().from_string('{% debug %}') t1 = Engine().from_string('{% debug %}')
self.assertIn("清風", t1.render(c1)) 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