File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717from zarr .core .group import GroupMetadata , parse_node_type
1818from zarr .core .metadata .v3 import (
1919 ArrayV3Metadata ,
20+ parse_codecs ,
2021 parse_dimension_names ,
2122 parse_zarr_format ,
2223)
23- from zarr .errors import MetadataValidationError , NodeTypeValidationError
24+ from zarr .errors import MetadataValidationError , NodeTypeValidationError , UnknownCodecError
2425
2526if TYPE_CHECKING :
2627 from collections .abc import Sequence
@@ -323,3 +324,9 @@ async def test_special_float_fill_values(fill_value: str) -> None:
323324 elif fill_value == "-Infinity" :
324325 assert np .isneginf (m .fill_value )
325326 assert d ["fill_value" ] == "-Infinity"
327+
328+
329+ def test_parse_codecs_unknown_codec_raises () -> None :
330+ codecs = [{"name" : "unknown" }]
331+ with pytest .raises (UnknownCodecError ):
332+ parse_codecs (codecs )
You can’t perform that action at this time.
0 commit comments