From caf60ed58a04bf9e7bd6ae98dbe9549db4ab6a7e Mon Sep 17 00:00:00 2001 From: jmoore Date: Sat, 17 Apr 2021 18:21:28 +0200 Subject: [PATCH] Add test for normalize_dim_sep to appease codecov --- zarr/tests/test_util.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zarr/tests/test_util.py b/zarr/tests/test_util.py index 10f5889f71..84e09dac8f 100644 --- a/zarr/tests/test_util.py +++ b/zarr/tests/test_util.py @@ -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])