Skip to content

Commit

Permalink
Enable stateful tests for ZipStore
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Feb 10, 2025
1 parent 1823a09 commit ea1356e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test_store/test_stateful.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
)

from zarr.abc.store import Store
from zarr.storage import LocalStore, ZipStore
from zarr.storage import LocalStore
from zarr.testing.stateful import ZarrHierarchyStateMachine, ZarrStoreStateMachine

pytestmark = pytest.mark.slow_hypothesis
Expand All @@ -15,19 +15,13 @@ def test_zarr_hierarchy(sync_store: Store):
def mk_test_instance_sync() -> ZarrHierarchyStateMachine:
return ZarrHierarchyStateMachine(sync_store)

if isinstance(sync_store, ZipStore):
pytest.skip(reason="ZipStore does not support delete")

run_state_machine_as_test(mk_test_instance_sync)


def test_zarr_store(sync_store: Store) -> None:
def mk_test_instance_sync() -> None:
return ZarrStoreStateMachine(sync_store)

if isinstance(sync_store, ZipStore):
pytest.skip(reason="ZipStore does not support delete")

if isinstance(sync_store, LocalStore):
# This test uses arbitrary keys, which are passed to `set` and `delete`.
# It assumes that `set` and `delete` are the only two operations that modify state.
Expand Down

0 comments on commit ea1356e

Please sign in to comment.