Skip to content

Commit

Permalink
fix: add missing test_ that didn't made the test run
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinit Kumar committed Sep 20, 2024
1 parent db26e74 commit 190b162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_dict2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def test_list_to_xml_with_special_characters(self):
result = dicttoxml.dicttoxml(data, root=False, attr_type=False, item_wrap=True)
assert result == b"<items><item>&lt;tag&gt;</item><item>&amp;</item><item>&quot;quote&quot;</item><item>&apos;single quote&apos;</item></items>"

def datetime_conversion_with_isoformat(self):
def test_datetime_conversion_with_isoformat(self):
data = {"key": datetime.datetime(2023, 2, 15, 12, 30, 45)}
result = dicttoxml.dicttoxml(data, attr_type=False)
assert b"<key>2023-02-15T12:30:45</key>" in result
Expand Down

0 comments on commit 190b162

Please sign in to comment.