MCPcopy Create free account
hub / github.com/pydata/xarray / test_to_dataset_inherit_invalid

Method test_to_dataset_inherit_invalid

xarray/tests/test_datatree.py:263–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 assert set(result.coords) == {"a", "b", "c", "d"}
262
263 def test_to_dataset_inherit_invalid(self) -> None:
264 tree = DataTree()
265 with pytest.raises(ValueError, match="Invalid value for inherit"):
266 tree.to_dataset(inherit="invalid") # type: ignore[arg-type]
267
268
269class TestVariablesChildrenNameCollisions:

Callers

nothing calls this directly

Calls 2

to_datasetMethod · 0.95
DataTreeClass · 0.90

Tested by

no test coverage detected