Skip to content

Commit

Permalink
Swap statements for better clarity and consistency with other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Jan 5, 2024
1 parent c55aeb3 commit fd514a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laces/tests/test_templatetags/test_laces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit fd514a3

Please sign in to comment.