4
4
import ujson
5
5
6
6
from pathlib import Path
7
- from kerchunk .hdf import SingleHdf5ToZarr
8
7
9
8
from activestorage .active import Active
10
- from activestorage .netcdf_to_zarr import open_zarr_group
11
9
from config_minio import *
12
10
13
11
@@ -17,6 +15,7 @@ def test_data_path():
17
15
return Path (__file__ ).resolve ().parent / 'test_data'
18
16
19
17
18
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
20
19
def test_s3_SingleHdf5ToZarr ():
21
20
"""Check Kerchunk's SingleHdf5ToZarr when S3."""
22
21
# SingleHdf5ToZarr is VERY quick and MEM-light
@@ -33,6 +32,7 @@ def test_s3_SingleHdf5ToZarr():
33
32
inline_threshold = 0 )
34
33
35
34
35
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
36
36
def test_local_SingleHdf5ToZarr (test_data_path ):
37
37
"""Check Kerchunk's SingleHdf5ToZarr when NO S3."""
38
38
# SingleHdf5ToZarr is VERY quick and MEM-light
@@ -44,6 +44,7 @@ def test_local_SingleHdf5ToZarr(test_data_path):
44
44
inline_threshold = 0 )
45
45
46
46
47
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
47
48
def test_s3_kerchunk_to_json ():
48
49
"""Check Kerchunk's SingleHdf5ToZarr dumped to JSON, when S3."""
49
50
s3_file = "s3://pyactivestorage/s3_test_bizarre_large.nc"
@@ -64,6 +65,7 @@ def test_s3_kerchunk_to_json():
64
65
f .write (ujson .dumps (h5chunks .translate ()).encode ())
65
66
66
67
68
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
67
69
def test_local_kerchunk_to_json (test_data_path ):
68
70
"""Check Kerchunk's SingleHdf5ToZarr dumped to JSON, when NO S3."""
69
71
local_file = str (test_data_path / "test_bizarre.nc" )
@@ -78,6 +80,7 @@ def test_local_kerchunk_to_json(test_data_path):
78
80
f .write (ujson .dumps (h5chunks .translate ()).encode ())
79
81
80
82
83
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
81
84
def test_s3_kerchunk_openZarrGroup ():
82
85
"""Check Kerchunk's SingleHdf5ToZarr dumped to JSON, when S3."""
83
86
s3_file = "s3://pyactivestorage/s3_test_bizarre_large.nc"
@@ -99,6 +102,7 @@ def test_s3_kerchunk_openZarrGroup():
99
102
ref_ds = open_zarr_group (outf , "data" )
100
103
101
104
105
+ @pytest .mark .xfail (reason = "Pyfive don't use Kerchunk" )
102
106
def test_local_kerchunk_openZarrGroup (test_data_path ):
103
107
"""Check Kerchunk's SingleHdf5ToZarr dumped to JSON, when NO S3."""
104
108
local_file = str (test_data_path / "test_bizarre.nc" )
0 commit comments