8000 Add test for normalize_dim_sep to appease codecov · zarr-developers/zarr-python@caf60ed · GitHub
[go: up one dir, main page]

Skip to content

Commit caf60ed

Browse files
committed
Add test for normalize_dim_sep to appease codecov
1 parent 64dffde commit caf60ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

zarr/tests/test_util.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66

77
from zarr.util import (guess_chunks, human_readable_size, info_html_report,
88
info_text_report, is_total_slice, normalize_chunks,
9+
normalize_dimension_separator,
910
normalize_fill_value, normalize_order,
1011
normalize_resize_args, normalize_shape, retry_call,
1112
tree_array_icon, tree_group_icon, tree_get_icon,
1213
tree_widget)
1314

1415

16+
def test_normalize_dimension_separator():
17+
assert None is normalize_dimension_separator(None)
18+
assert '/' == normalize_dimension_separator('/')
19+
assert '.' == normalize_dimension_separator('.')
20+
with pytest.raises(ValueError):
21+
normalize_shape('X')
22+
23+
1524
def test_normalize_shape():
1625
assert (100,) == normalize_shape((100,))
1726
assert (100,) == normalize_shape([100])

0 commit comments

Comments
 (0)
0