diff --git a/tests/test_tileset.py b/tests/test_tileset.py index 1e6f458..0aaebd2 100644 --- a/tests/test_tileset.py +++ b/tests/test_tileset.py @@ -18,8 +18,6 @@ ALL_TILESET_DIRS = TILE_SETS.glob("*") @pytest.mark.parametrize("tileset_dir", ALL_TILESET_DIRS) def test_tilesets_integration(tileset_dir): - """ This could be redundant, but it is useful just to ensure that anything in there - is at least sanity checked""" # it's a PITA to import like this, don't do it # https://stackoverflow.com/a/67692/1342874 spec = importlib.util.spec_from_file_location( @@ -31,6 +29,6 @@ def test_tilesets_integration(tileset_dir): raw_tileset_path = tileset_dir / "tileset.json" with open(raw_tileset_path) as raw_tileset: - tileset_ = tileset.cast(json.loads(raw_tileset)) + tileset_ = tileset.cast(json.loads(raw_tileset.read())) assert tileset_ == expected.EXPECTED