web: test expects basic auth header
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
6531bcc0f1
commit
63b39ed39b
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ def _ok_transport(request: httpx.Request) -> httpx.Response:
|
|||
},
|
||||
)
|
||||
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":
|
||||
return httpx.Response(200, json=[{"name": "2026-07-01.json"}])
|
||||
if request.url.path == "/api/v1/repos/m2/market-registry/pulls":
|
||||
|
|
|
|||
Loading…
Reference in a new issue