Commit 3ab3be4b authored by Simon Charette's avatar Simon Charette
Browse files

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

Backport of 8bf1449e from master
parent e846ea06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))