|
9 | 9 | import zarr.codecs
|
10 | 10 | from zarr.core import Array
|
11 | 11 | from zarr.creation import array, empty, full, ones, open_array, zeros
|
12 |
| -from zarr.hierarchy import open_group |
| 12 | +from zarr.hierarchy import open_group, group |
13 | 13 | from zarr.storage import DirectoryStore, MemoryStore, Store, ZipStore
|
14 | 14 |
|
15 | 15 |
|
@@ -234,12 +234,13 @@ def test_full(module, compressor):
|
234 | 234 | assert np.all(np.isnan(z[:]))
|
235 | 235 |
|
236 | 236 |
|
| 237 | +@pytest.mark.parametrize("group_create_function", [group, open_group]) |
237 | 238 | @pytest.mark.parametrize("module, compressor", param_module_and_compressor)
|
238 | 239 | @pytest.mark.parametrize("store_type", [None, DirectoryStore, MemoryStore, ZipStore])
|
239 |
| -def test_group(tmp_path, module, compressor, store_type): |
| 240 | +def test_group(tmp_path, group_create_function, module, compressor, store_type): |
240 | 241 | xp = ensure_module(module)
|
241 | 242 | store = init_store(tmp_path, store_type)
|
242 |
| - g = open_group(store, meta_array=xp.empty(())) |
| 243 | + g = group_create_function(store, meta_array=xp.empty(())) |
243 | 244 | g.ones("data", shape=(10, 11), dtype=int, compressor=compressor)
|
244 | 245 | a = g["data"]
|
245 | 246 | assert a.shape == (10, 11)
|
|
0 commit comments