Skip to content

Commit 14b3351

Browse files
committed
Fix test_stateful
1 parent 6cafeb9 commit 14b3351

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ module = [
367367
"tests.test_store.test_core",
368368
"tests.test_store.test_logging",
369369
"tests.test_store.test_object",
370+
"tests.test_store.test_stateful",
370371
]
371372
strict = false
372373

@@ -376,7 +377,6 @@ strict = false
376377
module = [
377378
"tests.test_codecs.test_codecs",
378379
"tests.test_metadata.*",
379-
"tests.test_store.test_stateful",
380380
"tests.test_store.test_wrapper",
381381
"tests.test_group",
382382
"tests.test_indexing",

tests/test_store/test_stateful.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
]
1616

1717

18-
def test_zarr_hierarchy(sync_store: Store):
18+
def test_zarr_hierarchy(sync_store: Store) -> None:
1919
def mk_test_instance_sync() -> ZarrHierarchyStateMachine:
2020
return ZarrHierarchyStateMachine(sync_store)
2121

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

25-
run_state_machine_as_test(mk_test_instance_sync)
25+
run_state_machine_as_test(mk_test_instance_sync) # type ignore[no-untyped-call]
2626

2727

2828
def test_zarr_store(sync_store: Store) -> None:
29-
def mk_test_instance_sync() -> None:
29+
def mk_test_instance_sync() -> ZarrStoreStateMachine:
3030
return ZarrStoreStateMachine(sync_store)
3131

3232
if isinstance(sync_store, ZipStore):
@@ -37,4 +37,4 @@ def mk_test_instance_sync() -> None:
3737
# It assumes that `set` and `delete` are the only two operations that modify state.
3838
# But LocalStore, directories can hang around even after a key is delete-d.
3939
pytest.skip(reason="Test isn't suitable for LocalStore.")
40-
run_state_machine_as_test(mk_test_instance_sync)
40+
run_state_machine_as_test(mk_test_instance_sync) # type ignore[no-untyped-call]

0 commit comments

Comments
 (0)