Skip to content

Commit

Permalink
Add extra group entries test
Browse files Browse the repository at this point in the history
  • Loading branch information
rayosborn committed Mar 15, 2023
1 parent 578480b commit 7a1bfe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ def test_group_entries(field1, field2, field3, field4, arr1D, arr2D):
assert "f5" in group1
assert "s1" in group1
assert "g1" in group1
assert "g1/f3" in group1

assert group1["f1"] == field1
assert group1["f2"] == field2
assert group1["f3"].nxdata.sum() == arr1D.sum()
assert group1["f4"].nxdata == field4.nxdata
assert group1["f5"].nxdata.sum() == arr2D.sum()
assert group1["s1"].nxdata == "string"
assert group1["g1/f3"].nxdata[0] == field3.nxdata[0]
assert group1["g1/f3"] == field3


def test_group_attrs():
Expand Down

0 comments on commit 7a1bfe6

Please sign in to comment.