(self)
| 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 |
no outgoing calls
no test coverage detected