Skip to content

Commit

Permalink
Speed up hypothesis tests (zarr-developers#2650)
Browse files Browse the repository at this point in the history
* Reduce number of examples in hypothesis tests

* Change max tests to 50

* Update tests/test_store/test_stateful.py

Co-authored-by: Deepak Cherian <[email protected]>

---------

Co-authored-by: Deepak Cherian <[email protected]>
  • Loading branch information
dstansby and dcherian authored Jan 14, 2025
1 parent 0220e45 commit d4da552
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_store/test_stateful.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mk_test_instance_sync() -> ZarrHierarchyStateMachine:
pytest.skip(reason="ZipStore does not support delete")
if isinstance(sync_store, MemoryStore):
run_state_machine_as_test(
mk_test_instance_sync, settings=Settings(report_multiple_bugs=False)
mk_test_instance_sync, settings=Settings(report_multiple_bugs=False, max_examples=50)
)


Expand All @@ -28,6 +28,11 @@ def mk_test_instance_sync() -> None:

if isinstance(sync_store, ZipStore):
pytest.skip(reason="ZipStore does not support delete")
if isinstance(sync_store, LocalStore):
elif isinstance(sync_store, LocalStore):
pytest.skip(reason="This test has errors")
run_state_machine_as_test(mk_test_instance_sync, settings=Settings(report_multiple_bugs=True))
elif isinstance(sync_store, MemoryStore):
run_state_machine_as_test(mk_test_instance_sync, settings=Settings(max_examples=50))
else:
run_state_machine_as_test(
mk_test_instance_sync, settings=Settings(report_multiple_bugs=True)
)

0 comments on commit d4da552

Please sign in to comment.