mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
tests: all currently implemented tileset tests passing.
This commit is contained in:
@@ -4,14 +4,14 @@ from pytiled_parser import tileset
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path(r"..\/..\/maps\/images\/tmw_desert_spacing.png"),
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
spacing=1,
|
||||
name="tile_set_image",
|
||||
tile_count=48,
|
||||
tiled_version="1.3.1",
|
||||
tiled_version="1.3.5",
|
||||
tile_height=32,
|
||||
tile_width=32,
|
||||
version=1.2,
|
||||
|
||||
@@ -5,14 +5,14 @@ from pytiled_parser.common_types import Color
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path(r"..\/..\/maps\/images\/tmw_desert_spacing.png"),
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
spacing=1,
|
||||
name="tile_set_image",
|
||||
tile_count=48,
|
||||
tiled_version="1.3.1",
|
||||
tiled_version="1.3.5",
|
||||
tile_height=32,
|
||||
tile_width=32,
|
||||
version=1.2,
|
||||
|
||||
@@ -1,23 +1,16 @@
|
||||
{ "backgroundcolor":"#5500ff",
|
||||
"columns":8,
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"format":"",
|
||||
"target":"..\/image"
|
||||
}
|
||||
},
|
||||
"image":"..\/images\/tmw_desert_spacing.png",
|
||||
"imageheight":199,
|
||||
"imagewidth":265,
|
||||
"margin":1,
|
||||
"name":"tile_set_image",
|
||||
"spacing":1,
|
||||
"tilecount":0,
|
||||
"tiledversion":"1.3.5",
|
||||
"tileheight":32,
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":1.2
|
||||
}
|
||||
{
|
||||
"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
|
||||
}
|
||||
|
||||
@@ -5,14 +5,14 @@ from pytiled_parser.common_types import Color
|
||||
|
||||
EXPECTED = tileset.TileSet(
|
||||
columns=8,
|
||||
image=Path(r"..\/..\/maps\/images\/tmw_desert_spacing.png"),
|
||||
image=Path("../../maps/images/tmw_desert_spacing.png"),
|
||||
image_height=199,
|
||||
image_width=265,
|
||||
margin=1,
|
||||
spacing=1,
|
||||
name="tile_set_image",
|
||||
tile_count=48,
|
||||
tiled_version="1.3.1",
|
||||
tiled_version="1.3.5",
|
||||
tile_height=32,
|
||||
tile_width=32,
|
||||
version=1.2,
|
||||
|
||||
@@ -10,9 +10,9 @@ EXPECTED = tileset.TileSet(
|
||||
image_width=265,
|
||||
margin=1,
|
||||
spacing=1,
|
||||
name="tile_set_image",
|
||||
name="tileset",
|
||||
tile_count=48,
|
||||
tiled_version="1.3.1",
|
||||
tiled_version="1.3.5",
|
||||
tile_height=32,
|
||||
tile_width=32,
|
||||
version=1.2,
|
||||
|
||||
Reference in New Issue
Block a user