Skip to content

Commit 8a406dc

Browse files
authored
Make test for tensorstore compression more robust (#574)
1 parent 4ff032b commit 8a406dc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

cubed/tests/storage/test_zarr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def test_lazy_zarr_array(tmp_path):
2727
)
2828
@pytest.mark.parametrize(
2929
"compressor",
30-
[None, {"id": "zstd"}, {"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1}],
30+
[
31+
None,
32+
{"id": "zstd", "level": 1},
33+
{"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1},
34+
],
3135
)
3236
def test_compression(tmp_path, compressor):
3337
zarr_path = tmp_path / "lazy.zarr"

cubed/tests/test_core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,11 @@ def test_default_spec_config_override():
352352

353353
@pytest.mark.parametrize(
354354
"compressor",
355-
[None, {"id": "zstd"}, {"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1}],
355+
[
356+
None,
357+
{"id": "zstd", "level": 1},
358+
{"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1},
359+
],
356360
)
357361
def test_spec_compressor(tmp_path, compressor):
358362
spec = cubed.Spec(tmp_path, allowed_mem=100000, zarr_compressor=compressor)

0 commit comments

Comments
 (0)