Initial 2.0 refactor

This commit is contained in:
Darren Eberly
2021-11-07 02:43:32 -05:00
parent 464454b02b
commit 45e0784d3d
21 changed files with 1370 additions and 1272 deletions

View File

@@ -6,7 +6,7 @@ from pathlib import Path
import pytest
from pytiled_parser import layer
from pytiled_parser.parsers.json.layer import parse
TESTS_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
TEST_DATA = TESTS_DIR / "test_data"
@@ -39,6 +39,6 @@ def test_layer_integration(layer_test):
with open(raw_layers_path) as raw_layers_file:
raw_layers = json.load(raw_layers_file)["layers"]
layers = [layer.cast(raw_layer) for raw_layer in raw_layers]
layers = [parse(raw_layer) for raw_layer in raw_layers]
assert layers == expected.EXPECTED