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

Method create_zarr_target

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

Source from the content-addressed store, hash-verified

3894
3895 @contextlib.contextmanager
3896 def create_zarr_target(self):
3897 if Version(zarr.__version__) < Version("2.18.0"):
3898 pytest.skip("Instrumented tests only work on latest Zarr.")
3899
3900 if has_zarr_v3:
3901 kwargs = {"read_only": False}
3902 else:
3903 kwargs = {} # type: ignore[arg-type,unused-ignore]
3904
3905 store = KVStore({}, **kwargs) # type: ignore[arg-type,unused-ignore]
3906 yield store
3907
3908 def make_patches(self, store):
3909 from unittest.mock import MagicMock

Callers 2

test_appendMethod · 0.95
test_region_writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected