refactor: changed RawProperties in properties.py to be a TypedDict

This commit is contained in:
Darren Eberly
2020-06-01 21:14:11 -04:00
parent 141599ba38
commit 3745b6bea5
2 changed files with 19 additions and 8 deletions

View File

@@ -1100,6 +1100,6 @@ OBJECTS = ELLIPSES + RECTANGLES + POINTS + TILES + POLYGONS + POLYLINES + TEXTS
@pytest.mark.parametrize("raw_object_json,expected", OBJECTS)
def test_parse_layer(raw_object_json, expected):
raw_object = json.loads(raw_object_json)
result = tiled_object._cast_tiled_object(raw_object)
result = tiled_object.cast(raw_object)
assert result == expected