We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4418426 commit 7a71174Copy full SHA for 7a71174
tests/test_store/test_object.py
@@ -1,7 +1,7 @@
1
# ruff: noqa: E402
2
import pytest
3
4
-pytest.importorskip("obstore")
+obstore = pytest.importorskip("obstore")
5
6
from zarr.core.buffer import cpu
7
from zarr.storage.object_store import ObjectStore
@@ -10,3 +10,13 @@
10
11
class TestObjectStore(StoreTests[ObjectStore, cpu.Buffer]):
12
store_cls = ObjectStore
13
+ buffer_cls = cpu.Buffer
14
+
15
+ @pytest.fixture
16
+ def store_kwargs(self, tmpdir) -> dict[str, str | bool]:
17
+ store = obstore.store.LocalStore(prefix=tmpdir)
18
+ return {"store": store, "read_only": False}
19
20
21
+ def store(self, store_kwargs: dict[str, str | bool]) -> ObjectStore:
22
+ return self.store_cls(**store_kwargs)
0 commit comments