Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
test(odk): compare dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
obdulia-losantos committed Oct 21, 2019
1 parent cf0b41f commit 90ff5f0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions aether-odk-module/aether/odk/api/tests/test_xform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ def test__parse_xform_file(self):
with open(self.samples['xform']['file-xml'], 'rb') as fp:
xml_content = parse_xform_file('xform.xml', fp)

self.assertEqual(
json.dumps(parse_xml_to_dict(xls_content), sort_keys=True),
json.dumps(parse_xml_to_dict(xml_content), sort_keys=True),
self.assertDictEqual(
parse_xml_to_dict(xls_content),
parse_xml_to_dict(xml_content),
'The XLS form and the XML form should define both the same form'
)

Expand Down Expand Up @@ -682,10 +682,7 @@ def test__parse_xform_to_avro_schema__with_multilanguage(self):
)

# the same fields
self.assertEqual(
json.dumps(schema['fields'], sort_keys=True),
json.dumps(schema_i18n['fields'], sort_keys=True)
)
self.assertDictEqual(schema['fields'], schema_i18n['fields'])

def test__parse_xform_to_avro_schema__nested_repeats(self):
xml_definition = '''
Expand Down

0 comments on commit 90ff5f0

Please sign in to comment.