MCPcopy
hub / github.com/pydata/xarray / test_update_multiindex_level

Method test_update_multiindex_level

xarray/tests/test_dataset.py:4470–4476  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4468 assert_identical(data, expected)
4469
4470 def test_update_multiindex_level(self) -> None:
4471 data = create_test_multiindex()
4472
4473 with pytest.raises(
4474 ValueError, match=r"cannot set or update variable.*corrupt.*index "
4475 ):
4476 data.update({"level_1": range(4)})
4477
4478 def test_update_auto_align(self) -> None:
4479 ds = Dataset({"x": ("t", [3, 4])}, {"t": [0, 1]})

Callers

nothing calls this directly

Calls 2

create_test_multiindexFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected