Skip to content

Commit fe3c8c8

Browse files
committed
fix: tests
1 parent 58636b3 commit fe3c8c8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
"snakemake-interface-storage-plugins >=4.2,<5.0",
2222
"snakemake-storage-plugin-http ~= 0.3",
2323
"tqdm-loggable ~= 0.2",
24+
"typing-extensions ~= 4.15",
2425
]
2526
classifiers = [
2627
"Development Status :: 4 - Beta",

src/snakemake_storage_plugin_cached_http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from contextlib import asynccontextmanager
1212
from dataclasses import dataclass, field
1313
from pathlib import Path
14-
from typing import override
14+
from typing_extensions import override
1515
from urllib.parse import urlparse
1616

1717
import httpx

tests/test_download.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ async def test_cache_functionality(storage_provider, tmp_path):
139139
await obj1.managed_retrieve()
140140

141141
# Verify cache was populated
142-
assert obj1.query_path is not None
143-
assert obj1.query_path.exists()
142+
assert obj1.provider.cache is not None
143+
cached_path = obj1.provider.cache.get(str(obj1.query))
144+
assert cached_path is not None
145+
assert cached_path.exists()
144146

145147
# Second download should use cache
146148
obj2 = StorageObject(

0 commit comments

Comments
 (0)