mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 07:40:11 +01:00
tests: fix tileset tests to work with new test_data file structure
This commit is contained in:
@@ -4,7 +4,7 @@ from pytiled_parser import tileset
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image=Path("../../images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
{
|
||||
"columns": 8,
|
||||
"editorsettings": {
|
||||
"export": {
|
||||
"format": "",
|
||||
"target": "."
|
||||
}
|
||||
},
|
||||
"image": "../../maps/images/tmw_desert_spacing.png",
|
||||
"imageheight": 199,
|
||||
"imagewidth": 265,
|
||||
"margin": 1,
|
||||
"name": "tile_set_image",
|
||||
"spacing": 1,
|
||||
"tilecount": 48,
|
||||
"tiledversion": "1.3.5",
|
||||
"tileheight": 32,
|
||||
"tilewidth": 32,
|
||||
"type": "tileset",
|
||||
"version": 1.2
|
||||
}
|
||||
{ "columns":8,
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"format":"",
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.3.5",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":1.2
|
||||
}
|
||||
@@ -5,7 +5,7 @@ from pytiled_parser.common_types import Color
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image=Path("../../images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
{
|
||||
"backgroundcolor": "#5500ff",
|
||||
"columns": 8,
|
||||
"image": "../../maps/images/tmw_desert_spacing.png",
|
||||
"imageheight": 199,
|
||||
"imagewidth": 265,
|
||||
"margin": 1,
|
||||
"name": "tile_set_image",
|
||||
"spacing": 1,
|
||||
"tilecount": 48,
|
||||
"tiledversion": "1.3.5",
|
||||
"tileheight": 32,
|
||||
"tilewidth": 32,
|
||||
"type": "tileset",
|
||||
"version": 1.2
|
||||
}
|
||||
{ "backgroundcolor":"#5500ff",
|
||||
"columns":8,
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"format":"",
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":48,
|
||||
"tiledversion":"1.3.5",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":1.2
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/maps\/images\/tmw_desert_spacing.png",
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
|
||||
@@ -5,7 +5,7 @@ from pytiled_parser.common_types import Color
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image=Path("../../images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"target":"..\/image"
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/maps\/images\/tmw_desert_spacing.png",
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
|
||||
@@ -5,7 +5,7 @@ from pytiled_parser.common_types import Color, OrderedPair
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image=Path("../../images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"target":"..\/image"
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/maps\/images\/tmw_desert_spacing.png",
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
|
||||
@@ -5,7 +5,7 @@ from pytiled_parser.common_types import Color
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image=Path("../../images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
{ "columns":8,
|
||||
"image":"..\/..\/maps\/images\/tmw_desert_spacing.png",
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"format":"",
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"image":"..\/..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
|
||||
Reference in New Issue
Block a user