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

Method test_bad_names

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

Source from the content-addressed store, hash-verified

55 assert detached.name == "bar"
56
57 def test_bad_names(self) -> None:
58 with pytest.raises(TypeError):
59 DataTree(name=5) # type: ignore[arg-type]
60
61 with pytest.raises(ValueError):
62 DataTree(name="folder/data")
63
64 def test_data_arg(self) -> None:
65 ds = xr.Dataset({"foo": 42})

Callers

nothing calls this directly

Calls 1

DataTreeClass · 0.90

Tested by

no test coverage detected