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

Function test_map_blocks_errors_bad_template_2

xarray/tests/test_dask.py:1492–1494  ·  view source on GitHub ↗
(map_ds)

Source from the content-addressed store, hash-verified

1490
1491
1492def test_map_blocks_errors_bad_template_2(map_ds):
1493 with pytest.raises(ValueError, match=r"unexpected data variables {'xyz'}"):
1494 xr.map_blocks(lambda x: x.assign(xyz=1), map_ds, template=map_ds).compute()
1495
1496
1497@pytest.mark.parametrize("obj", [make_da(), make_ds()])

Callers

nothing calls this directly

Calls 3

computeMethod · 0.45
map_blocksMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…