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

Method test_region_scalar

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

Source from the content-addressed store, hash-verified

3506 assert_identical(actual, nonzeros)
3507
3508 def test_region_scalar(self) -> None:
3509 ds = Dataset({"x": 0})
3510 with self.create_zarr_target() as store:
3511 ds.to_zarr(store)
3512 ds.to_zarr(store, region={}, mode="r+")
3513 with xr.open_zarr(store) as actual:
3514 assert_identical(actual, ds)
3515
3516 @pytest.mark.parametrize("mode", [None, "r+", "a"])
3517 def test_write_region_mode(self, mode) -> None:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected