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

Method test_non_existent_store

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

Source from the content-addressed store, hash-verified

2738 assert_identical(ds, expected)
2739
2740 def test_non_existent_store(self) -> None:
2741 patterns = [
2742 "No such file or directory",
2743 "Unable to find group",
2744 "No group found in store",
2745 "does not exist",
2746 ]
2747 with pytest.raises(FileNotFoundError, match=f"({'|'.join(patterns)})"):
2748 xr.open_zarr(f"{uuid.uuid4()}")
2749
2750 @pytest.mark.skipif(has_zarr_v3, reason="chunk_store not implemented in zarr v3")
2751 def test_with_chunkstore(self) -> None:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected