From 6c484d68b647a7c016bbf33e192037d5f7e05a6d Mon Sep 17 00:00:00 2001 From: YousefEZ <45167695+YousefEZ@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:36:22 +0100 Subject: [PATCH] :bug: fix tests --- tests/unit/test_xml_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_xml_renderer.py b/tests/unit/test_xml_renderer.py index 0de7d3c..56a9ffd 100644 --- a/tests/unit/test_xml_renderer.py +++ b/tests/unit/test_xml_renderer.py @@ -163,7 +163,7 @@ def test_expansive_with_static_elements(self, _: mock.mock.MagicMock): for idx in range(len(messages)): embed = messages[idx].embed assert embed is not None - self.assertEqual(embed.fields, 1) + self.assertEqual(len(embed.fields), 1) def test_expansive_no_footer(self, _: mock.mock.MagicMock): template = "tests/routes/jinja-test.xml"