Skip to content

Commit f102e84

Browse files
committed
add test
1 parent 926c54e commit f102e84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numcodecs/tests/test_zarr3.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,8 @@ def test_delta_astype(store: StorePath):
272272
def test_repr():
273273
codec = numcodecs.zarr3.LZ4(level=5)
274274
assert repr(codec) == "LZ4(codec_name='numcodecs.lz4', codec_config={'level': 5})"
275+
276+
277+
def test_to_dict():
278+
codec = numcodecs.zarr3.LZ4(level=5)
279+
assert codec.to_dict() == {"name": "numcodecs.lz4", "configuration": {"level": 5}}

0 commit comments

Comments
 (0)