Skip to content

Commit 2ad1b35

Browse files
committed
Add zarr_version
1 parent dfd0d1b commit 2ad1b35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_properties.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
)
3939
stores = st.builds(MemoryStore, st.just({}), mode=st.just("w"))
4040
compressors = st.sampled_from([None, "default"])
41+
zarr_versions = st.sampled_from([2])
4142

4243

4344
@st.composite
@@ -64,13 +65,15 @@ def arrays(
6465
arrays=np_arrays,
6566
paths=paths,
6667
array_names=array_names,
68+
zarr_versions=zarr_versions,
6769
):
6870
store = draw(stores)
6971
nparray, chunks = draw(np_array_and_chunks(arrays=arrays))
7072
path = draw(paths)
7173
name = draw(array_names)
7274
attributes = draw(attrs)
7375
compressor = draw(compressors)
76+
zarr_version = draw(zarr_versions)
7477

7578
# TODO: clean this up
7679
if path is None and name is None:
@@ -103,6 +106,7 @@ def arrays(
103106
compressor=compressor,
104107
# TODO: FIXME seems to break with booleans and timedelta
105108
# fill_value=nparray.dtype.type(0),
109+
zarr_version=zarr_version,
106110
)
107111

108112
assert isinstance(a, Array)

0 commit comments

Comments
 (0)