From fd514a36932bd5622142528995aca0e7bc7b53cf Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Thu, 4 Jan 2024 18:55:49 -0800 Subject: [PATCH] Swap statements for better clarity and consistency with other tests --- laces/tests/test_templatetags/test_laces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laces/tests/test_templatetags/test_laces.py b/laces/tests/test_templatetags/test_laces.py index 08bdc0b..1e18770 100644 --- a/laces/tests/test_templatetags/test_laces.py +++ b/laces/tests/test_templatetags/test_laces.py @@ -41,8 +41,8 @@ def assertRenderHTMLCalledWith(self, context: dict): self.assertTrue(self.component.render_html.called_with(Context(context))) def test_render_html_return_in_parent_template(self): - self.set_parent_template("Before {% component my_component %} After") self.assertEqual(self.component.render_html(), "Rendered HTML") + self.set_parent_template("Before {% component my_component %} After") result = self.render_parent_template_with_context( {"my_component": self.component},