Skip to content

Commit 89e0688

Browse files
committed
ensure that the result of from_array can be zarred
1 parent c9734a2 commit 89e0688

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_pydantic_zarr/test_v3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_serialize_deserialize() -> None:
4848
def test_from_array() -> None:
4949
array = np.arange(10)
5050
array_spec = ArraySpec.from_array(array)
51+
5152
assert array_spec == ArraySpec(
5253
zarr_format=3,
5354
node_type="array",
@@ -65,6 +66,9 @@ def test_from_array() -> None:
6566
storage_transformers=(),
6667
dimension_names=None,
6768
)
69+
# check that we can write this array to zarr
70+
# TODO: fix type of the store argument in to_zarr
71+
array_spec.to_zarr(store={}, path="") # type: ignore[arg-type]
6872

6973

7074
def test_arrayspec_no_empty_codecs() -> None:

0 commit comments

Comments
 (0)