File: test_codec.py

package info (click to toggle)
zarr 3.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,068 kB
  • sloc: python: 31,589; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from __future__ import annotations

from zarr.abc.codec import _check_codecjson_v2


def test_check_codecjson_v2_valid() -> None:
    """
    Test that the _check_codecjson_v2 function works
    """
    assert _check_codecjson_v2({"id": "gzip"})
    assert not _check_codecjson_v2({"id": 10})
    assert not _check_codecjson_v2([10, 11])