Skip to content

Commit 9a83b86

Browse files
committed
zipstore store_kwargs propagates path
1 parent 471740b commit 9a83b86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_store/test_zip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class TestZipStore(StoreTests[ZipStore, cpu.Buffer]):
2222
store_cls = ZipStore
2323
buffer_cls = cpu.Buffer
2424

25-
@pytest.fixture
26-
def store_kwargs(self, request) -> dict[str, str | bool]:
25+
@pytest.fixture(params=["", "test_path"])
26+
def store_kwargs(self, request: pytest.FixtureRequest) -> dict[str, str | bool]:
2727
fd, temp_path = tempfile.mkstemp()
2828
os.close(fd)
2929

30-
return {"file_path": temp_path, "mode": "w", "path": ""}
30+
return {"file_path": temp_path, "mode": "w", "path": request.param}
3131

3232
async def get(self, store: ZipStore, key: str) -> Buffer:
3333
return store._get(store.resolve_key(key), prototype=default_buffer_prototype())

0 commit comments

Comments
 (0)