|
29 | 29 |
|
30 | 30 | @pytest.fixture |
31 | 31 | async def memory_store_with_hierarchy() -> None: |
32 | | - memory_store = await zarr.storage.MemoryStore.open(mode="a") |
| 32 | + memory_store = zarr.storage.MemoryStore() |
33 | 33 | g = await group(store=memory_store, attributes={"foo": "bar"}) |
34 | 34 | await g.create_array(name="air", shape=(1, 2, 3)) |
35 | 35 | await g.create_array(name="lat", shape=(1,)) |
@@ -202,7 +202,7 @@ async def test_consolidated(self, memory_store_with_hierarchy: Store) -> None: |
202 | 202 |
|
203 | 203 | @pytest.mark.parametrize( |
204 | 204 | "store", |
205 | | - ["memory_a"], |
| 205 | + ["memory"], |
206 | 206 | indirect=True, |
207 | 207 | ) |
208 | 208 | def test_consolidated_sync(self, store: Store): |
@@ -287,12 +287,12 @@ def test_consolidated_sync(self, store: Store): |
287 | 287 |
|
288 | 288 | @pytest.mark.parametrize( |
289 | 289 | "store", |
290 | | - ["memory_a"], |
| 290 | + ["memory"], |
291 | 291 | indirect=True, |
292 | 292 | ) |
293 | 293 | async def test_not_writable_raises(self, store: zarr.storage.MemoryStore) -> None: |
294 | 294 | await group(store=store, attributes={"foo": "bar"}) |
295 | | - read_store = zarr.storage.MemoryStore(store_dict=store._store_dict) |
| 295 | + read_store = zarr.storage.MemoryStore(store_dict=store._store_dict, read_only=True) |
296 | 296 | with pytest.raises(ValueError, match="does not support writing"): |
297 | 297 | await consolidate_metadata(read_store) |
298 | 298 |
|
@@ -518,7 +518,7 @@ async def test_consolidated_metadata_v2(self): |
518 | 518 |
|
519 | 519 | @pytest.mark.parametrize( |
520 | 520 | "store", |
521 | | - ["memory_a"], |
| 521 | + ["memory"], |
522 | 522 | indirect=True, |
523 | 523 | ) |
524 | 524 | async def test_use_consolidated_false( |
|
0 commit comments