From b0b96bff026d2eea316dcbf9c8a88cf6e420903d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Moreno?= Date: Mon, 11 Jul 2022 18:18:17 +0200 Subject: [PATCH] Fix tests with xmltodict >= 0.13.0 The package xmltodict 0.13.0 return the output as dict, this patch fixes the tests with this new version. --- test/test_parse.py | 4 ++-- test/test_serialize.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_parse.py b/test/test_parse.py index 3c0bf86..491b4dc 100644 --- a/test/test_parse.py +++ b/test/test_parse.py @@ -37,7 +37,7 @@ def assert_unicode(self, struct): (example_json, None, example_as_dict), (example_json5, 'json5', example_as_dict), (example_toml, 'toml', toml_example_as_dict), # we can't tell toml from ini - (example_xml, None, example_as_ordered_dict), + (example_xml, None, example_as_dict), (example_yaml_map, None, example_as_dict), (example_yaml_omap, None, example_as_ordered_dict), ]) @@ -55,7 +55,7 @@ def test_parse_basic(self, str, fmt, expected): (example_json, None, example_as_dict), (example_json5, 'json5', example_as_dict), (example_toml, 'toml', toml_example_as_dict), # we can't tell toml from ini - (example_xml, None, example_as_ordered_dict), + (example_xml, None, example_as_dict), (example_yaml_map, None, example_as_dict), (example_yaml_omap, None, example_as_ordered_dict), ]) diff --git a/test/test_serialize.py b/test/test_serialize.py index 8191561..7b1d67f 100644 --- a/test/test_serialize.py +++ b/test/test_serialize.py @@ -32,7 +32,7 @@ def _read_decode(self, file): (example_as_dict, 'json'), (example_as_dict, 'json5'), (toml_example_as_dict, 'toml'), - (example_as_ordered_dict, 'xml'), + (example_as_dict, 'xml'), (example_as_dict, 'yaml'), (example_as_ordered_dict, 'yaml'), ]) @@ -60,7 +60,7 @@ def test_serialize_raises_with_unicode_opened_file(self, tmpdir): (example_as_dict, None, 'example.json'), (example_as_dict, 'json5', 'example.json5'), (toml_example_as_dict, 'toml', 'example.toml'), - (example_as_ordered_dict, None, 'example.xml'), + (example_as_dict, None, 'example.xml'), (example_as_dict, None, 'example.yaml'), (example_as_ordered_dict, None, 'example_ordered.yaml'), ])