test(extensions): annotate local test vars flagged by codeant review

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Evan
2026-07-06 21:06:51 -07:00
parent cc1b46943a
commit dae914ed6f
2 changed files with 8 additions and 4 deletions

View File

@@ -65,16 +65,16 @@ def test_asset_path_is_intercepted() -> None:
def test_nested_asset_path_is_intercepted() -> None:
headers = call_middleware(
headers: ResponseHeaders = call_middleware(
"/api/v1/extensions/acme/my-ext/workers/nested/chunk.wasm",
[("Vary", "Accept-Encoding, Cookie")],
)
vary = dict(headers).get("Vary", "")
vary: str = dict(headers).get("Vary", "")
assert "Cookie" not in vary
def test_get_endpoint_with_trailing_slash_is_not_intercepted() -> None:
upstream = [("Vary", "Accept-Encoding, Cookie")]
upstream: ResponseHeaders = [("Vary", "Accept-Encoding, Cookie")]
headers = call_middleware("/api/v1/extensions/acme/my-ext/", upstream)
assert headers == upstream