diff options
author | pommicket <pommicket@gmail.com> | 2025-09-23 13:31:00 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-23 13:31:00 -0400 |
commit | 3bf2b10ae0bef28677ea0ab3e2d1bbb3fe31735f (patch) | |
tree | f70dde9c5bcf1f6aae39ea609620ed8e8ca186d3 /tests | |
parent | 6407cf22def09de43ec2ec02692c0e4ea3b17742 (diff) |
Clean up examples, fix a few bugsv0.0.1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/location.py | 2 | ||||
-rw-r--r-- | tests/parsing.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/location.py b/tests/location.py index cdac8e7..b24d70b 100644 --- a/tests/location.py +++ b/tests/location.py @@ -5,7 +5,7 @@ def test_path(tester: unittest.TestCase, loc_path: str) -> None: conf_path = loc_path.replace('.locations.pom', '.pom') locs = pom_parser.load_path(loc_path) conf = pom_parser.load_path(conf_path) - for item in conf.items(): + for item in conf: expected = locs.get_uint(item.key) tester.assertTrue(expected is not None) tester.assertEqual(expected, item.line, f'Incorrect line number for {item.key}') diff --git a/tests/parsing.py b/tests/parsing.py index 185cde9..52d3283 100644 --- a/tests/parsing.py +++ b/tests/parsing.py @@ -6,10 +6,10 @@ def test_path(tester: unittest.TestCase, flat_path: str) -> None: conf = pom_parser.load_path(conf_path) flat = pom_parser.load_path(flat_path) conf_items = {} - for item in conf.items(): + for item in conf: tester.assertTrue(flat.has(item.key), f'{conf_path} has key {item.key} but {flat_path} does not') conf_items[item.key] = item - for item in flat.items(): + for item in flat: tester.assertTrue(conf.has(item.key), f'{flat_path} has key {item.key} but {conf_path} does not') conf_item = conf_items[item.key] tester.assertEqual(conf_item.value, item.value, f'Values for key {item.key} do not match.') |