Skip to content

Commit

Permalink
revert mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Feb 2, 2024
1 parent cb391e2 commit 90770db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_ugrid_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_init_errors():
with pytest.raises(TypeError, match="obj must be xarray.DataArray"):
xugrid.UgridDataArray(0, GRID())
with pytest.raises(TypeError, match="grid must be Ugrid1d or Ugrid2d"):
.copy(), 0)
xugrid.UgridDataArray(DARRAY(), 0)

with pytest.raises(ValueError, match="At least either obj or grids is required"):
xugrid.UgridDataset()
Expand Down Expand Up @@ -1264,6 +1264,7 @@ def test_laplace_interpolate_1d():
assert isinstance(actual, xugrid.UgridDataArray)
assert np.allclose(actual, 1.0)


def test_ugriddataset_wrap_twice():
_ = xugrid.UgridDataset(UGRID_DS)
_ = xugrid.UgridDataset(UGRID_DS)

0 comments on commit 90770db

Please sign in to comment.