Skip to content

Commit 0f1092a

Browse files
committed
Update get parameterization
1 parent 7d415f5 commit 0f1092a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/zarr/testing/store.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,15 @@ async def test_read_only_store_raises(self, open_kwargs: dict[str, Any]) -> None
150150
await store.delete("foo")
151151

152152
@pytest.mark.parametrize("key", ["c/0", "foo/c/0.0", "foo/0/0"])
153-
@pytest.mark.parametrize("data", [b"\x01\x02\x03\x04", b""])
154153
@pytest.mark.parametrize(
155-
"byte_range", [None, RangeByteRequest(1, 4), OffsetByteRequest(1), SuffixByteRequest(1)]
154+
("data", "byte_range"),
155+
[
156+
(b"\x01\x02\x03\x04", None),
157+
(b"\x01\x02\x03\x04", RangeByteRequest(1, 4)),
158+
(b"\x01\x02\x03\x04", OffsetByteRequest(1)),
159+
(b"\x01\x02\x03\x04", SuffixByteRequest(1)),
160+
(b"", None),
161+
],
156162
)
157163
async def test_get(self, store: S, key: str, data: bytes, byte_range: ByteRequest) -> None:
158164
"""

0 commit comments

Comments
 (0)