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

Method test_append_with_no_dims_raises

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

Source from the content-addressed store, hash-verified

3236 )
3237
3238 def test_append_with_no_dims_raises(self) -> None:
3239 with self.create_zarr_target() as store_target:
3240 Dataset({"foo": ("x", [1])}).to_zarr(
3241 store_target, mode="w", **self.version_kwargs
3242 )
3243 with pytest.raises(ValueError, match="different dimension names"):
3244 Dataset({"foo": ("y", [2])}).to_zarr(
3245 store_target, mode="a", **self.version_kwargs
3246 )
3247
3248 def test_append_with_append_dim_not_set_raises(self) -> None:
3249 ds, ds_to_append, _ = create_append_test_data()

Callers

nothing calls this directly

Calls 3

create_zarr_targetMethod · 0.95
DatasetClass · 0.90
to_zarrMethod · 0.45

Tested by

no test coverage detected