Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Feb 14, 2025
1 parent cd21c78 commit 4661242
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ def test_array_creates_implicit_groups(array):
for i in range(len(ancestry)):
parent = "/".join(ancestry[: i + 1])
if array.metadata.zarr_format == 2:
sync(array.store.get(f"{parent}/.zgroup", prototype=default_buffer_prototype()))
assert (
sync(array.store.get(f"{parent}/.zgroup", prototype=default_buffer_prototype()))
is not None
)
elif array.metadata.zarr_format == 3:
sync(array.store.get(f"{parent}/zarr.json", prototype=default_buffer_prototype()))
assert (
sync(array.store.get(f"{parent}/zarr.json", prototype=default_buffer_prototype()))
is not None
)


@given(data=st.data())
Expand Down

0 comments on commit 4661242

Please sign in to comment.