Skip to content

Commit

Permalink
use zarr_format fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Nov 15, 2024
1 parent c0d5407 commit f946499
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
from zarr.core._info import ArrayInfo, GroupInfo, human_readable_size
from zarr.core.common import ZarrFormat

ZARR_FORMATS = [2, 3]


@pytest.mark.parametrize("zarr_format", ZARR_FORMATS)
def test_group_info_repr(zarr_format: ZarrFormat) -> None:
info = GroupInfo(
_name="a", _store_type="MemoryStore", _read_only=False, _zarr_format=zarr_format
Expand All @@ -25,7 +22,6 @@ def test_group_info_repr(zarr_format: ZarrFormat) -> None:
assert result == expected


@pytest.mark.parametrize("zarr_format", ZARR_FORMATS)
def test_group_info_complete(zarr_format: ZarrFormat) -> None:
info = GroupInfo(
_name="a",
Expand All @@ -49,7 +45,6 @@ def test_group_info_complete(zarr_format: ZarrFormat) -> None:
assert result == expected


@pytest.mark.parametrize("zarr_format", ZARR_FORMATS)
def test_array_info(zarr_format: ZarrFormat) -> None:
info = ArrayInfo(
_zarr_format=zarr_format,
Expand All @@ -74,7 +69,6 @@ def test_array_info(zarr_format: ZarrFormat) -> None:
Codecs : [{{'endian': <Endian.little: 'little'>}}]""")


@pytest.mark.parametrize("zarr_format", ZARR_FORMATS)
@pytest.mark.parametrize("bytes_things", [(1_000_000, "976.6K", 500_000, "500000", "2.0", 5)])
def test_array_info_complete(
zarr_format: ZarrFormat, bytes_things: tuple[int, str, int, str, str, int]
Expand Down

0 comments on commit f946499

Please sign in to comment.