Skip to content

Commit 027c361

Browse files
committed
Update test
1 parent dee2188 commit 027c361

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_group.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ def test_create_nodes_concurrency_limit(store: MemoryStore) -> None:
15341534
(zarr.core.group.create_hierarchy, zarr.core.sync_group.create_hierarchy),
15351535
(zarr.core.group.create_nodes, zarr.core.sync_group.create_nodes),
15361536
(zarr.core.group.create_rooted_hierarchy, zarr.core.sync_group.create_rooted_hierarchy),
1537-
(zarr.core.group.get_node, zarr.core.sync_group.get_node),
1537+
(zarr.core.group.get_node, zarr.storage.get_node),
15381538
],
15391539
)
15401540
def test_consistent_signatures(
@@ -1594,7 +1594,9 @@ async def test_create_hierarchy(
15941594
else:
15951595
raise ValueError(f"Invalid impl: {impl}")
15961596
if not overwrite:
1597-
extra_group = sync_group.get_node(store=store, path="group/extra", zarr_format=zarr_format)
1597+
extra_group = zarr.storage.get_node(
1598+
store=store, path="group/extra", zarr_format=zarr_format
1599+
)
15981600
assert extra_group.metadata.attributes == {"path": "group/extra"}
15991601
else:
16001602
with pytest.raises(FileNotFoundError):
@@ -1713,7 +1715,7 @@ async def test_group_create_hierarchy(
17131715
assert all_members[k].metadata == v == extant_created[k].metadata
17141716
# ensure that we left the root group as-is
17151717
assert (
1716-
sync_group.get_node(store=store, path=group_path, zarr_format=zarr_format).attrs.asdict()
1718+
zarr.storage.get_node(store=store, path=group_path, zarr_format=zarr_format).attrs.asdict()
17171719
== root_attrs
17181720
)
17191721

0 commit comments

Comments
 (0)