Skip to content

Commit

Permalink
Make test for tensorstore compression more robust (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite authored Sep 17, 2024
1 parent 4ff032b commit 8a406dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cubed/tests/storage/test_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def test_lazy_zarr_array(tmp_path):
)
@pytest.mark.parametrize(
"compressor",
[None, {"id": "zstd"}, {"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1}],
[
None,
{"id": "zstd", "level": 1},
{"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1},
],
)
def test_compression(tmp_path, compressor):
zarr_path = tmp_path / "lazy.zarr"
Expand Down
6 changes: 5 additions & 1 deletion cubed/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ def test_default_spec_config_override():

@pytest.mark.parametrize(
"compressor",
[None, {"id": "zstd"}, {"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1}],
[
None,
{"id": "zstd", "level": 1},
{"id": "blosc", "cname": "lz4", "clevel": 2, "shuffle": -1},
],
)
def test_spec_compressor(tmp_path, compressor):
spec = cubed.Spec(tmp_path, allowed_mem=100000, zarr_compressor=compressor)
Expand Down

0 comments on commit 8a406dc

Please sign in to comment.