From 75049e315232c39a366a62d9e67c15d04e14a905 Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Thu, 11 Aug 2022 02:16:35 -0400 Subject: [PATCH] Fix more tests --- tests/test_data/world_tests/both/expected.py | 14 +++++++------- .../world_tests/pattern_matched/expected.py | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/test_data/world_tests/both/expected.py b/tests/test_data/world_tests/both/expected.py index f2762d8..90d7a86 100644 --- a/tests/test_data/world_tests/both/expected.py +++ b/tests/test_data/world_tests/both/expected.py @@ -12,13 +12,6 @@ EXPECTED = world.World( .absolute() .resolve(), ), - world.WorldMap( - size=common_types.Size(160, 160), - coordinates=common_types.OrderedPair(0.0, 0.0), - map_file=Path(Path(__file__).parent / "map_p0-n0.json") - .absolute() - .resolve(), - ), world.WorldMap( size=common_types.Size(160, 160), coordinates=common_types.OrderedPair(0.0, 160.0), @@ -26,5 +19,12 @@ EXPECTED = world.World( .absolute() .resolve(), ), + world.WorldMap( + size=common_types.Size(160, 160), + coordinates=common_types.OrderedPair(0.0, 0.0), + map_file=Path(Path(__file__).parent / "map_p0-n0.json") + .absolute() + .resolve(), + ), ], ) diff --git a/tests/test_data/world_tests/pattern_matched/expected.py b/tests/test_data/world_tests/pattern_matched/expected.py index c5c078e..7bd5b6e 100644 --- a/tests/test_data/world_tests/pattern_matched/expected.py +++ b/tests/test_data/world_tests/pattern_matched/expected.py @@ -5,13 +5,6 @@ from pytiled_parser import common_types, world EXPECTED = world.World( only_show_adjacent=False, maps=[ - world.WorldMap( - size=common_types.Size(160, 160), - coordinates=common_types.OrderedPair(0.0, 0.0), - map_file=Path(Path(__file__).parent / "map_p0-n0.json") - .absolute() - .resolve(), - ), world.WorldMap( size=common_types.Size(160, 160), coordinates=common_types.OrderedPair(0.0, 160.0), @@ -19,5 +12,12 @@ EXPECTED = world.World( .absolute() .resolve(), ), + world.WorldMap( + size=common_types.Size(160, 160), + coordinates=common_types.OrderedPair(0.0, 0.0), + map_file=Path(Path(__file__).parent / "map_p0-n0.json") + .absolute() + .resolve(), + ), ], )