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

Method test_append_with_mode_rplus_success

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

Source from the content-addressed store, hash-verified

3206 super().test_append_write()
3207
3208 def test_append_with_mode_rplus_success(self) -> None:
3209 original = Dataset({"foo": ("x", [1])})
3210 modified = Dataset({"foo": ("x", [2])})
3211 with self.create_zarr_target() as store:
3212 original.to_zarr(store, **self.version_kwargs)
3213 modified.to_zarr(store, mode="r+", **self.version_kwargs)
3214 with self.open(store) as actual:
3215 assert_identical(actual, modified)
3216
3217 def test_append_with_mode_rplus_fails(self) -> None:
3218 original = Dataset({"foo": ("x", [1])})

Callers

nothing calls this directly

Calls 5

create_zarr_targetMethod · 0.95
to_zarrMethod · 0.95
openMethod · 0.95
DatasetClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected