Skip to content

Commit 8169e3e

Browse files
committed
do something for V3
1 parent 79a26d2 commit 8169e3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_properties.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,16 @@ async def test_roundtrip_array_metadata(
115115

116116
@given(store=stores, meta=array_metadata()) # type: ignore[misc]
117117
def test_array_metadata_meets_spec(store: Store, meta: ArrayV2Metadata | ArrayV3Metadata) -> None:
118+
# TODO: fill this out
118119
asdict = meta.to_dict()
119120
if isinstance(meta, ArrayV2Metadata):
120121
assert asdict["filters"] != ()
122+
assert asdict["filters"] is None or isinstance(asdict["filters"], tuple)
123+
assert asdict["zarr_format"] == 2
124+
elif isinstance(meta, ArrayV3Metadata):
125+
assert asdict["zarr_format"] == 3
126+
else:
127+
raise NotImplementedError
121128

122129

123130
# @st.composite

0 commit comments

Comments
 (0)