Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Nov 11, 2024
1 parent f7cab1d commit 2d0bdd7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import textwrap

import numpy as np
import pytest

from zarr.codecs.bytes import BytesCodec
from zarr.core._info import ArrayInfo, GroupInfo, human_readable_size
from zarr.core.common import ZarrFormat

Expand Down Expand Up @@ -51,13 +53,13 @@ def test_group_info_complete(zarr_format: ZarrFormat) -> None:
def test_array_info(zarr_format: ZarrFormat) -> None:
info = ArrayInfo(
_zarr_format=zarr_format,
_data_type="int32",
_data_type=np.dtype("int32"),
_shape=(100, 100),
_chunk_shape=(10, 100),
_order="C",
_read_only=True,
_store_type="MemoryStore",
_codecs="[\"BytesCodec(endian=<Endian.little: 'little'>\"]",
_codecs=[BytesCodec()],
)
result = repr(info)
assert result == textwrap.dedent(f"""\
Expand Down Expand Up @@ -87,13 +89,13 @@ def test_array_info_complete(
) = bytes_things
info = ArrayInfo(
_zarr_format=zarr_format,
_data_type="int32",
_data_type=np.dtype("int32"),
_shape=(100, 100),
_chunk_shape=(10, 100),
_order="C",
_read_only=True,
_store_type="MemoryStore",
_codecs="[\"BytesCodec(endian=<Endian.little: 'little'>\"]",
_codecs=[BytesCodec()],
_count_bytes=count_bytes,
_count_bytes_stored=count_bytes_stored,
_count_chunks_initialized=count_chunks_initialized,
Expand Down

0 comments on commit 2d0bdd7

Please sign in to comment.