mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 07:14:20 +00:00
format
This commit is contained in:
parent
7f4d55f5f7
commit
e338d0f7bc
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ def test_authenticated_endpoint_with_invalid_github_token(mock_client_class, git
|
||||||
|
|
||||||
response = github_token_client.get("/test", headers={"Authorization": "Bearer invalid_token"})
|
response = github_token_client.get("/test", headers={"Authorization": "Bearer invalid_token"})
|
||||||
assert response.status_code == 401
|
assert response.status_code == 401
|
||||||
assert "GitHub token validation failed. Please check your token and try again." in response.json()["error"]["message"]
|
assert (
|
||||||
|
"GitHub token validation failed. Please check your token and try again." in response.json()["error"]["message"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@patch("llama_stack.distribution.server.auth_providers.httpx.AsyncClient")
|
@patch("llama_stack.distribution.server.auth_providers.httpx.AsyncClient")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue