Skip to content

Commit afa36a1

Browse files
committed
Fix world tests
1 parent 8a31bf7 commit afa36a1

File tree

3 files changed

+53
-54
lines changed

3 files changed

+53
-54
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
from pathlib import Path
2-
3-
from pytiled_parser import common_types, world
4-
5-
EXPECTED = world.World(
6-
only_show_adjacent=False,
7-
maps=[
8-
world.WorldMap(
9-
size=common_types.Size(160, 160),
10-
coordinates=common_types.OrderedPair(-160, 0),
11-
map_file=Path(Path(__file__).parent / "map_manual_one.json")
12-
.absolute()
13-
.resolve(),
14-
),
15-
world.WorldMap(
16-
size=common_types.Size(160, 160),
17-
coordinates=common_types.OrderedPair(0.0, 160.0),
18-
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
19-
.absolute()
20-
.resolve(),
21-
),
22-
world.WorldMap(
23-
size=common_types.Size(160, 160),
24-
coordinates=common_types.OrderedPair(0.0, 0.0),
25-
map_file=Path(Path(__file__).parent / "map_p0-n0.json")
26-
.absolute()
27-
.resolve(),
28-
),
29-
],
30-
)
1+
from pathlib import Path
2+
3+
from pytiled_parser import common_types, world
4+
5+
EXPECTED = world.World(
6+
only_show_adjacent=False,
7+
maps=[
8+
world.WorldMap(
9+
size=common_types.Size(160, 160),
10+
coordinates=common_types.OrderedPair(-160, 0),
11+
map_file=Path(Path(__file__).parent / "map_manual_one.json")
12+
.absolute()
13+
.resolve(),
14+
),
15+
world.WorldMap(
16+
size=common_types.Size(160, 160),
17+
coordinates=common_types.OrderedPair(0.0, 0.0),
18+
map_file=Path(Path(__file__).parent / "map_p0-n0.json")
19+
.absolute()
20+
.resolve(),
21+
),
22+
world.WorldMap(
23+
size=common_types.Size(160, 160),
24+
coordinates=common_types.OrderedPair(0.0, 160.0),
25+
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
26+
.absolute()
27+
.resolve(),
28+
),
29+
],
30+
)
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
from pathlib import Path
2-
3-
from pytiled_parser import common_types, world
4-
5-
EXPECTED = world.World(
6-
only_show_adjacent=False,
7-
maps=[
8-
world.WorldMap(
9-
size=common_types.Size(160, 160),
10-
coordinates=common_types.OrderedPair(0.0, 160.0),
11-
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
12-
.absolute()
13-
.resolve(),
14-
),
15-
world.WorldMap(
16-
size=common_types.Size(160, 160),
17-
coordinates=common_types.OrderedPair(0.0, 0.0),
18-
map_file=Path(Path(__file__).parent / "map_p0-n0.json")
19-
.absolute()
20-
.resolve(),
21-
),
22-
],
23-
)
1+
from pathlib import Path
2+
3+
from pytiled_parser import common_types, world
4+
5+
EXPECTED = world.World(
6+
only_show_adjacent=False,
7+
maps=[
8+
world.WorldMap(
9+
size=common_types.Size(160, 160),
10+
coordinates=common_types.OrderedPair(0.0, 0.0),
11+
map_file=Path(Path(__file__).parent / "map_p0-n0.json")
12+
.absolute()
13+
.resolve(),
14+
),
15+
world.WorldMap(
16+
size=common_types.Size(160, 160),
17+
coordinates=common_types.OrderedPair(0.0, 160.0),
18+
map_file=Path(Path(__file__).parent / "map_p0-n1.json")
19+
.absolute()
20+
.resolve(),
21+
),
22+
],
23+
)

tests/test_world.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
]
1919

2020

21-
@pytest.mark.xfail
2221
@pytest.mark.parametrize("world_test", ALL_WORLD_TESTS)
2322
def test_world_integration(world_test):
2423
# it's a PITA to import like this, don't do it

0 commit comments

Comments
 (0)