Merge tests (#247)

* removed hardcoded model names from tests

* add debug line
This commit is contained in:
Eduard van Valkenburg
2025-07-28 11:12:28 +02:00
committed by GitHub
Unverified
parent f47d0a1e0b
commit ba008cf4c0
2 changed files with 9 additions and 8 deletions
@@ -646,9 +646,10 @@ def get_story_text() -> str:
@skip_if_azure_integration_tests_disabled
async def test_azure_openai_chat_client_response() -> None:
"""Test Azure OpenAI chat completion responses."""
azure_chat_client = AzureChatClient(deployment_name="gpt-4o")
azure_chat_client = AzureChatClient()
assert isinstance(azure_chat_client, ChatClient)
print(f"Using Azure OpenAI endpoint: {azure_chat_client.client._azure_endpoint}") # noqa
messages: list[ChatMessage] = []
messages.append(
@@ -673,7 +674,7 @@ async def test_azure_openai_chat_client_response() -> None:
@skip_if_azure_integration_tests_disabled
async def test_azure_openai_chat_client_response_tools() -> None:
"""Test AzureOpenAI chat completion responses."""
azure_chat_client = AzureChatClient(deployment_name="gpt-4o")
azure_chat_client = AzureChatClient()
assert isinstance(azure_chat_client, ChatClient)
@@ -695,7 +696,7 @@ async def test_azure_openai_chat_client_response_tools() -> None:
@skip_if_azure_integration_tests_disabled
async def test_azure_openai_chat_client_streaming() -> None:
"""Test Azure OpenAI chat completion responses."""
azure_chat_client = AzureChatClient(deployment_name="gpt-4o")
azure_chat_client = AzureChatClient()
assert isinstance(azure_chat_client, ChatClient)
@@ -728,7 +729,7 @@ async def test_azure_openai_chat_client_streaming() -> None:
@skip_if_azure_integration_tests_disabled
async def test_azure_openai_chat_client_streaming_tools() -> None:
"""Test AzureOpenAI chat completion responses."""
azure_chat_client = AzureChatClient(deployment_name="gpt-4o")
azure_chat_client = AzureChatClient()
assert isinstance(azure_chat_client, ChatClient)
@@ -127,7 +127,7 @@ def get_story_text() -> str:
@skip_if_openai_integration_tests_disabled
async def test_openai_chat_completion_response() -> None:
"""Test OpenAI chat completion responses."""
openai_chat_client = OpenAIChatClient(ai_model_id="gpt-4.1-mini")
openai_chat_client = OpenAIChatClient()
assert isinstance(openai_chat_client, ChatClient)
@@ -154,7 +154,7 @@ async def test_openai_chat_completion_response() -> None:
@skip_if_openai_integration_tests_disabled
async def test_openai_chat_completion_response_tools() -> None:
"""Test OpenAI chat completion responses."""
openai_chat_client = OpenAIChatClient(ai_model_id="gpt-4.1-mini")
openai_chat_client = OpenAIChatClient()
assert isinstance(openai_chat_client, ChatClient)
@@ -176,7 +176,7 @@ async def test_openai_chat_completion_response_tools() -> None:
@skip_if_openai_integration_tests_disabled
async def test_openai_chat_client_streaming() -> None:
"""Test Azure OpenAI chat completion responses."""
openai_chat_client = OpenAIChatClient(ai_model_id="gpt-4.1-mini")
openai_chat_client = OpenAIChatClient()
assert isinstance(openai_chat_client, ChatClient)
@@ -209,7 +209,7 @@ async def test_openai_chat_client_streaming() -> None:
@skip_if_openai_integration_tests_disabled
async def test_openai_chat_client_streaming_tools() -> None:
"""Test AzureOpenAI chat completion responses."""
openai_chat_client = OpenAIChatClient(ai_model_id="gpt-4.1-mini")
openai_chat_client = OpenAIChatClient()
assert isinstance(openai_chat_client, ChatClient)