Skip to content

Commit

Permalink
add asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Nov 5, 2024
1 parent d9878cf commit e5217ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ def test_read(store: Store) -> None:
_ = create_array(store=store, path="array", shape=(10, 10), attributes={"node_type": "array"})

group_r = read(store, path="group")
assert isinstance(group_r, Group)
assert group_r.attrs == {"node_type": "group"}

array_r = read(store, path="array")
assert isinstance(array_r, Array)
assert array_r.attrs == {"node_type": "array"}
assert array_r.shape == (10, 10)

Expand Down

0 comments on commit e5217ce

Please sign in to comment.