From 523986bcbe0760f0caa27cfb21e1e7c287cd5ba0 Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Tue, 27 Jun 2023 09:18:08 -0700 Subject: [PATCH] add test --- zarr/tests/test_meta.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/zarr/tests/test_meta.py b/zarr/tests/test_meta.py index 8acd634a13..1be74fb075 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": "