MCPcopy Index your code
hub / github.com/pydata/xarray / test_save_mfdataset_invalid

Method test_save_mfdataset_invalid

xarray/tests/test_backends.py:6300–6305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6298 assert_identical(actual, original)
6299
6300 def test_save_mfdataset_invalid(self) -> None:
6301 ds = Dataset()
6302 with pytest.raises(ValueError, match=r"cannot use mode"):
6303 save_mfdataset([ds, ds], ["same", "same"])
6304 with pytest.raises(ValueError, match=r"same length"):
6305 save_mfdataset([ds, ds], ["only one path"])
6306
6307 def test_save_mfdataset_invalid_dataarray(self) -> None:
6308 # regression test for GH1555

Callers

nothing calls this directly

Calls 2

DatasetClass · 0.90
save_mfdatasetFunction · 0.90

Tested by

no test coverage detected