Skip to content

Commit

Permalink
add non-inherited duplicated coord, var and dim names roundtrip to/fr…
Browse files Browse the repository at this point in the history
…om dict test
  • Loading branch information
acrosby committed Jul 13, 2024
1 parent 1e16ffb commit 4586bdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xarray/tests/test_datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,13 @@ def test_roundtrip_unnamed_root(self, simple_datatree):
roundtrip = DataTree.from_dict(dt.to_dict())
assert roundtrip.equals(dt)

def test_roundtrip_noninherited_dupl_names(
self, create_test_multidataset_withoutroot_datatree
):
dt = create_test_multidataset_withoutroot_datatree()
roundtrip = DataTree.from_dict(dt.to_dict())
assert roundtrip.equals(dt)


class TestDatasetView:
def test_view_contents(self):
Expand Down

0 comments on commit 4586bdf

Please sign in to comment.