Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_dict2xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def test_dict2xml_with_flat(self) -> None:
def test_dict2xml_omit_list(self) -> None:
"""Test dicttoxml with list omission."""
obj = {"list": [{"bike": "blue"}, {"wheel": "black"}]}
dicttoxml.dicttoxml(obj, root=False, attr_type=False, item_wrap=False)
assert b"<list><bike>blue</bike><wheel>black</wheel></list>"
result = dicttoxml.dicttoxml(obj, root=False, attr_type=False, item_wrap=False)
assert b"<list><bike>blue</bike><wheel>black</wheel></list>" == result

def test_dict2xml_with_val_and_custom_attr(self) -> None:
"""Test dicttoxml with @val and custom attributes."""
Expand Down