We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a26d2 commit 8169e3eCopy full SHA for 8169e3e
tests/test_properties.py
@@ -115,9 +115,16 @@ async def test_roundtrip_array_metadata(
115
116
@given(store=stores, meta=array_metadata()) # type: ignore[misc]
117
def test_array_metadata_meets_spec(store: Store, meta: ArrayV2Metadata | ArrayV3Metadata) -> None:
118
+ # TODO: fill this out
119
asdict = meta.to_dict()
120
if isinstance(meta, ArrayV2Metadata):
121
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
128
129
130
# @st.composite
0 commit comments