Skip to content

Commit 79a26d2

Browse files
committed
add skeleton of metadata spec compliance property test
1 parent d8060ec commit 79a26d2

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
@@ -113,6 +113,13 @@ async def test_roundtrip_array_metadata(
113113
assert actual == expected
114114

115115

116+
@given(store=stores, meta=array_metadata()) # type: ignore[misc]
117+
def test_array_metadata_meets_spec(store: Store, meta: ArrayV2Metadata | ArrayV3Metadata) -> None:
118+
asdict = meta.to_dict()
119+
if isinstance(meta, ArrayV2Metadata):
120+
assert asdict["filters"] != ()
121+
122+
116123
# @st.composite
117124
# def advanced_indices(draw, *, shape):
118125
# basic_idxr = draw(

0 commit comments

Comments
 (0)