web: test expects basic auth header

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
m2 (AI Agent) 2026-07-02 05:53:01 +02:00
parent 6531bcc0f1
commit 63b39ed39b

View file

@ -122,7 +122,7 @@ def _ok_transport(request: httpx.Request) -> httpx.Response:
}, },
) )
if request.url.host == "git.example": if request.url.host == "git.example":
assert request.headers["Authorization"] == "token forgejo-secret-token" assert request.headers["Authorization"] == "Basic bTI6Zm9yZ2Vqby1zZWNyZXQtdG9rZW4="
if request.url.path == "/api/v1/repos/m2/market-registry/contents/audit": if request.url.path == "/api/v1/repos/m2/market-registry/contents/audit":
return httpx.Response(200, json=[{"name": "2026-07-01.json"}]) return httpx.Response(200, json=[{"name": "2026-07-01.json"}])
if request.url.path == "/api/v1/repos/m2/market-registry/pulls": if request.url.path == "/api/v1/repos/m2/market-registry/pulls":