Skip to content

Commit 2013ff9

Browse files
committed
Test unimplemented kwargs warn
1 parent d10c93b commit 2013ff9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,3 +1372,10 @@ def test_auto_chunks(f: Callable[..., Array]) -> None:
13721372

13731373
a = f(**kwargs)
13741374
assert a.chunks == (500, 500)
1375+
1376+
1377+
@pytest.mark.parametrize("kwarg_name", ["synchronizer", "chunk_store", "cache_attrs", "meta_array"])
1378+
def test_unimplemented_kwarg_warnings(kwarg_name: str) -> None:
1379+
kwargs = {kwarg_name: 1}
1380+
with pytest.warns(RuntimeWarning, match=".* is not yet implemented"):
1381+
zarr.create(shape=(1,), **kwargs) # type: ignore[arg-type]

0 commit comments

Comments
 (0)