We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fce416 commit 296c42fCopy full SHA for 296c42f
tests/integration/test_zarr_to_iris.py
@@ -7,6 +7,7 @@
7
import iris
8
import pytest
9
import xarray as xr
10
+
11
from ncdata.iris_xarray import cubes_from_xarray as conversion_func
12
13
@@ -88,7 +89,12 @@ def _is_url_ok(url):
88
89
"https://uor-aces-o.s3-ext.jc.rl.ac.uk/"
90
"esmvaltool-zarr/pr_Amon_CNRM-ESM2-1_02Kpd-11_r1i1p2f2_gr_200601-220112.zarr3"
91
)
-_S3_accessible = _is_url_ok(S3_TEST_PATH)
92
93
+# Check 3 files, as we apparently sometimes get 'partial success'
94
+_S3_accessible = all(
95
+ _is_url_ok(S3_TEST_PATH + subpath)
96
+ for subpath in ["", "/.zattrs", "/.zmetadata"]
97
+)
98
99
100
@pytest.mark.skipif(not _S3_accessible, reason="S3 url not accessible")
0 commit comments