Skip to content

Commit

Permalink
Add test for normalize_dim_sep to appease codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Apr 17, 2021
1 parent 64dffde commit caf60ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zarr/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@

from zarr.util import (guess_chunks, human_readable_size, info_html_report,
info_text_report, is_total_slice, normalize_chunks,
normalize_dimension_separator,
normalize_fill_value, normalize_order,
normalize_resize_args, normalize_shape, retry_call,
tree_array_icon, tree_group_icon, tree_get_icon,
tree_widget)


def test_normalize_dimension_separator():
assert None is normalize_dimension_separator(None)
assert '/' == normalize_dimension_separator('/')
assert '.' == normalize_dimension_separator('.')
with pytest.raises(ValueError):
normalize_shape('X')


def test_normalize_shape():
assert (100,) == normalize_shape((100,))
assert (100,) == normalize_shape([100])
Expand Down

0 comments on commit caf60ed

Please sign in to comment.