Skip to content

Commit 760fb42

Browse files
committed
add test cases
1 parent a5b6873 commit 760fb42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,13 +1106,16 @@ def test_open_falls_back_to_open_group() -> None:
11061106
assert group.attrs == {"key": "value"}
11071107

11081108

1109-
async def test_open_falls_back_to_open_group_async() -> None:
1109+
async def test_open_falls_back_to_open_group_async(zarr_format: ZarrFormat) -> None:
11101110
# https://github.com/zarr-developers/zarr-python/issues/2309
11111111
store = MemoryStore()
1112-
await zarr.api.asynchronous.open_group(store, attributes={"key": "value"})
1112+
await zarr.api.asynchronous.open_group(
1113+
store, attributes={"key": "value"}, zarr_format=zarr_format
1114+
)
11131115

11141116
group = await zarr.api.asynchronous.open(store=store)
11151117
assert isinstance(group, zarr.core.group.AsyncGroup)
1118+
assert group.metadata.zarr_format == zarr_format
11161119
assert group.attrs == {"key": "value"}
11171120

11181121

0 commit comments

Comments
 (0)