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

Method test_append_with_invalid_dim_raises

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

Source from the content-addressed store, hash-verified

3225 modified.to_zarr(store, mode="r+", **self.version_kwargs)
3226
3227 def test_append_with_invalid_dim_raises(self) -> None:
3228 ds, ds_to_append, _ = create_append_test_data()
3229 with self.create_zarr_target() as store_target:
3230 ds.to_zarr(store_target, mode="w", **self.version_kwargs)
3231 with pytest.raises(
3232 ValueError, match="does not match any existing dataset dimensions"
3233 ):
3234 ds_to_append.to_zarr(
3235 store_target, append_dim="notvalid", **self.version_kwargs
3236 )
3237
3238 def test_append_with_no_dims_raises(self) -> None:
3239 with self.create_zarr_target() as store_target:

Callers

nothing calls this directly

Calls 3

create_zarr_targetMethod · 0.95
create_append_test_dataFunction · 0.90
to_zarrMethod · 0.45

Tested by

no test coverage detected