diff --git a/zarr/tests/test_meta.py b/zarr/tests/test_meta.py index 8acd634a1..1be74fb07 100644 --- a/zarr/tests/test_meta.py +++ b/zarr/tests/test_meta.py @@ -313,6 +313,33 @@ def test_encode_decode_array_dtype_shape_v3(): assert meta_dec['fill_value'] is None assert 'filters' not in meta_dec +@pytest.mark.parametrize("comp_id", ["gzip", "zlib", "blosc", "bz2", "lz4", "lzma"]) +def test_decode_metadata_implicit_compressor_config_v3(comp_id): + meta = { + "attributes": {}, + "chunk_grid": { + "chunk_shape": [10], + "separator": "/", + "type": "regular" + }, + "chunk_memory_layout": "C", + "compressor": { + "codec": f"https://purl.org/zarr/spec/codec/{comp_id}/1.0", + "configuration": { + # intentionally left empty + } + }, + "data_type": "