mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 15:49:49 +01:00
Fix world tests
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
from pathlib import Path
|
||||
|
||||
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(-160, 0),
|
||||
map_file=Path(Path(__file__).parent / "map_manual_one.json")
|
||||
.absolute()
|
||||
.resolve(),
|
||||
),
|
||||
world.WorldMap(
|
||||
size=common_types.Size(160, 160),
|
||||
coordinates=common_types.OrderedPair(0.0, 160.0),
|
||||
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
|
||||
.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(),
|
||||
),
|
||||
],
|
||||
)
|
||||
from pathlib import Path
|
||||
|
||||
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(-160, 0),
|
||||
map_file=Path(Path(__file__).parent / "map_manual_one.json")
|
||||
.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),
|
||||
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
|
||||
.absolute()
|
||||
.resolve(),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
from pathlib import Path
|
||||
|
||||
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, 160.0),
|
||||
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
|
||||
.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(),
|
||||
),
|
||||
],
|
||||
)
|
||||
from pathlib import Path
|
||||
|
||||
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),
|
||||
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
|
||||
.absolute()
|
||||
.resolve(),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user