Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Documentation = "https://fastapi-cachex.readthedocs.io/"
[dependency-groups]
dev = [
"coverage>=7.8.0",
"httpx>=0.28.1",
"httpx2>=2.13.1",
"mypy>=1.15.0",
"orjson>=3.10.16",
"pre-commit>=4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cache_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async def no_cache_endpoint():
response1 = client.get("/no-cache-with-etag")
assert response1.status_code == 200
assert execution_count["value"] == 1
etag = response1.headers.get("ETag")
etag = response1.headers["ETag"]

# Second request with If-None-Match matching ETag
# Handler executes again to get fresh data for comparison (no-cache behavior)
Expand Down Expand Up @@ -209,7 +209,7 @@ async def header_endpoint():
response1 = client.get("/header-preservation")
assert response1.status_code == 200
etag1 = response1.headers.get("ETag")
cache_control1 = response1.headers.get("Cache-Control")
cache_control1 = response1.headers["Cache-Control"]

# Second request (cache hit)
response2 = client.get("/header-preservation")
Expand Down
60 changes: 36 additions & 24 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading