tests(layer): no_layers

This commit is contained in:
Benjamin Kirkbride
2020-07-27 20:41:15 -04:00
parent 2b54089f40
commit ba9b8dabe0
4 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from pytiled_parser import common_types, layer
EXPECTED = []

View File

@@ -0,0 +1,63 @@
{ "compressionlevel":0,
"editorsettings":
{
"export":
{
"target":"."
}
},
"height":6,
"infinite":false,
"layers":[],
"nextlayerid":2,
"nextobjectid":1,
"orientation":"orthogonal",
"properties":[
{
"name":"bool property - false",
"type":"bool",
"value":false
},
{
"name":"bool property - true",
"type":"bool",
"value":true
},
{
"name":"color property",
"type":"color",
"value":"#ff49fcff"
},
{
"name":"file property",
"type":"file",
"value":"..\/..\/..\/..\/..\/..\/var\/log\/syslog"
},
{
"name":"float property",
"type":"float",
"value":1.23456789
},
{
"name":"int property",
"type":"int",
"value":13
},
{
"name":"string property",
"type":"string",
"value":"Hello, World!!"
}],
"renderorder":"right-down",
"tiledversion":"1.4.1",
"tileheight":32,
"tilesets":[
{
"firstgid":1,
"source":"tileset_image.json"
}],
"tilewidth":32,
"type":"map",
"version":1.4,
"width":8
}

View File

@@ -0,0 +1,14 @@
{ "columns":8,
"image":"..\/..\/images\/tmw_desert_spacing.png",
"imageheight":199,
"imagewidth":265,
"margin":1,
"name":"tile_set_image",
"spacing":1,
"tilecount":48,
"tiledversion":"1.3.1",
"tileheight":32,
"tilewidth":32,
"type":"tileset",
"version":1.2
}

View File

@@ -15,6 +15,7 @@ LAYER_TESTS = TEST_DATA / "layer_tests"
ALL_LAYER_TESTS = [
LAYER_TESTS / "all_layer_types",
LAYER_TESTS / "no_layers",
]