Skip to content

Commit

Permalink
Merge pull request #1352 from benoit-pierre/tweak_dictionary_tests_fo…
Browse files Browse the repository at this point in the history
…r_easier_debugging

utils/testing: tweak `dictionary_test` for easier debugging
  • Loading branch information
benoit-pierre authored Oct 9, 2021
2 parents 0501aa3 + 7fbb78e commit 8495a32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plover_build_utils/testing/steno_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ def _test_load(self, tmp_path, contents, expected):
assert d.readonly == self.DICT_CLASS.readonly
assert d.timestamp == expected_timestamp
if self.DICT_SUPPORT_SEQUENCE_METHODS:
assert len(d) == len(expected_entries)
assert sorted(d) == sorted(expected_entries)
assert sorted(d.items()) == sorted(expected_entries.items())
assert sorted(d) == sorted(expected_entries)
assert len(d) == len(expected_entries)
else:
assert len(d) == 0
assert tuple(d) == ()
assert tuple(d.items()) == ()
assert tuple(d) == ()
assert len(d) == 0
for k, v in expected_entries.items():
assert k in d
assert d[k] == v
Expand Down

0 comments on commit 8495a32

Please sign in to comment.