Skip to content

Commit 84cfe18

Browse files
committed
use the API
1 parent d8f9b01 commit 84cfe18

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/v3/test_array.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from zarr.core.array import chunks_initialized
1111
from zarr.core.buffer.cpu import NDBuffer
1212
from zarr.core.common import ZarrFormat
13+
from zarr.core.group import AsyncGroup
1314
from zarr.core.indexing import ceildiv
1415
from zarr.core.sync import sync
1516
from zarr.errors import ContainsArrayError, ContainsGroupError
@@ -95,6 +96,11 @@ async def test_create_creates_parents(
9596

9697
assert result == expected
9798

99+
paths = ["a", "a/b", "a/b/c"]
100+
for path in paths:
101+
g = await zarr.api.asynchronous.open_group(store=store, path=path)
102+
assert isinstance(g, AsyncGroup)
103+
98104

99105
@pytest.mark.parametrize("store", ["local", "memory", "zip"], indirect=["store"])
100106
@pytest.mark.parametrize("zarr_format", [2, 3])

tests/v3/test_group.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ async def test_create_creates_parents(store: Store, zarr_format: ZarrFormat) ->
8080

8181
assert result == expected
8282

83+
paths = ["a", "a/b", "a/b/c"]
84+
for path in paths:
85+
g = await zarr.api.asynchronous.open_group(store=store, path=path)
86+
assert isinstance(g, AsyncGroup)
87+
8388

8489
def test_group_name_properties(store: Store, zarr_format: ZarrFormat) -> None:
8590
"""

0 commit comments

Comments
 (0)