Skip to content

Commit d1c95b2

Browse files
committed
get consolidated tests to pass
1 parent 9def17d commit d1c95b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_metadata/test_consolidated.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
@pytest.fixture
3131
async def memory_store_with_hierarchy() -> None:
32-
memory_store = await zarr.storage.MemoryStore.open(mode="a")
32+
memory_store = zarr.storage.MemoryStore()
3333
g = await group(store=memory_store, attributes={"foo": "bar"})
3434
await g.create_array(name="air", shape=(1, 2, 3))
3535
await g.create_array(name="lat", shape=(1,))
@@ -202,7 +202,7 @@ async def test_consolidated(self, memory_store_with_hierarchy: Store) -> None:
202202

203203
@pytest.mark.parametrize(
204204
"store",
205-
["memory_a"],
205+
["memory"],
206206
indirect=True,
207207
)
208208
def test_consolidated_sync(self, store: Store):
@@ -287,12 +287,12 @@ def test_consolidated_sync(self, store: Store):
287287

288288
@pytest.mark.parametrize(
289289
"store",
290-
["memory_a"],
290+
["memory"],
291291
indirect=True,
292292
)
293293
async def test_not_writable_raises(self, store: zarr.storage.MemoryStore) -> None:
294294
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)
296296
with pytest.raises(ValueError, match="does not support writing"):
297297
await consolidate_metadata(read_store)
298298

@@ -518,7 +518,7 @@ async def test_consolidated_metadata_v2(self):
518518

519519
@pytest.mark.parametrize(
520520
"store",
521-
["memory_a"],
521+
["memory"],
522522
indirect=True,
523523
)
524524
async def test_use_consolidated_false(

0 commit comments

Comments
 (0)