Skip to content

Commit 735a928

Browse files
committed
rewire test fixtures
1 parent c8971b4 commit 735a928

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

tests/test_cli_e2e.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ def test_cli_convert_real_sentinel2_data(s2_group_example: Path, tmp_path: Path)
164164
expected_structure_json = tuplify_json(
165165
json.loads(
166166
(
167-
Path("tests/_test_data/optimized_geozarr_examples/")
168-
/ (s2_group_example.stem + ".json")
167+
Path("tests/_test_data/geozarr_examples/") / (s2_group_example.stem + ".json")
169168
).read_text()
170169
)
171170
)

tests/test_data_api/test_geozarr/test_multiscales/test_zcm.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,12 @@
99
ScaleLevelJSON,
1010
)
1111

12-
from .conftest import ZCM_MULTISCALES_EXAMPLES
1312

14-
15-
def test_json_examples_exist() -> None:
16-
"""
17-
Test that we have multiscales JSON examples to test against
18-
"""
19-
assert len(ZCM_MULTISCALES_EXAMPLES) > 0
20-
21-
22-
@pytest.mark.parametrize("json_example", ZCM_MULTISCALES_EXAMPLES.items(), ids=lambda v: v[0])
23-
def test_multiscales_rt(json_example: tuple[str, dict[str, object]]) -> None:
13+
def test_multiscales_rt(zcm_multiscales_example: dict[str, object]) -> None:
2414
"""
2515
Test that the multiscales metadata round-trips input JSON
2616
"""
27-
_, value = json_example
17+
value = zcm_multiscales_example
2818
value_tup = tuplify_json(value)
2919
attrs_json = value_tup["attributes"]
3020
model = MultiscalesAttrs(**attrs_json)

0 commit comments

Comments
 (0)