mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-30 02:14:17 +00:00
fixes
This commit is contained in:
parent
cad646478f
commit
bf8d76f19b
3 changed files with 7 additions and 8 deletions
|
|
@ -7,6 +7,7 @@
|
|||
import json
|
||||
|
||||
import httpx
|
||||
import openai
|
||||
import pytest
|
||||
|
||||
from llama_stack import LlamaStackAsLibraryClient
|
||||
|
|
@ -306,7 +307,7 @@ def test_response_non_streaming_mcp_tool(request, openai_client, model, provider
|
|||
exc_type = (
|
||||
AuthenticationRequiredError
|
||||
if isinstance(openai_client, LlamaStackAsLibraryClient)
|
||||
else httpx.HTTPStatusError
|
||||
else (httpx.HTTPStatusError, openai.AuthenticationError)
|
||||
)
|
||||
with pytest.raises(exc_type):
|
||||
openai_client.responses.create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue