Compare commits

...

1 Commits

Author SHA1 Message Date
Giles Odigwe 87012b986e Python: re-enable Azure OpenAI integration tests
Restore the env-based `skip_if_azure_openai_integration_tests_disabled`
guard in the three Azure OpenAI test modules. These integration tests were
temporarily hard-skipped in #6753 because they crashed the pytest-xdist runner
in the merge queue (tracked in #6777). Verified locally: 36 passed, 1 skipped
(pre-existing image-content skip), 0 failed when run serially.

Re-enabling here to validate them in CI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-30 10:46:25 -07:00
3 changed files with 15 additions and 6 deletions
@@ -23,8 +23,11 @@ from agent_framework_openai import OpenAIChatClient
pytestmark = pytest.mark.azure
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skip(
reason="Azure OpenAI integration tests temporarily disabled: crashes the xdist runner in CI.",
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skipif(
os.getenv("AZURE_OPENAI_ENDPOINT", "") in ("", "https://test-endpoint.openai.azure.com")
or (os.getenv("AZURE_OPENAI_CHAT_MODEL", "") == "" and os.getenv("AZURE_OPENAI_MODEL", "") == ""),
reason="No real Azure OpenAI endpoint or responses deployment provided; skipping integration tests.",
)
@@ -28,8 +28,11 @@ from agent_framework_openai import OpenAIChatCompletionClient
pytestmark = pytest.mark.azure
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skip(
reason="Azure OpenAI integration tests temporarily disabled: crashes the xdist runner in CI.",
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skipif(
os.getenv("AZURE_OPENAI_ENDPOINT", "") in ("", "https://test-endpoint.openai.azure.com")
or (os.getenv("AZURE_OPENAI_CHAT_COMPLETION_MODEL", "") == "" and os.getenv("AZURE_OPENAI_MODEL", "") == ""),
reason="No real Azure OpenAI endpoint or chat deployment provided; skipping integration tests.",
)
@@ -18,8 +18,11 @@ from agent_framework_openai import OpenAIEmbeddingClient, OpenAIEmbeddingOptions
pytestmark = pytest.mark.azure
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skip(
reason="Azure OpenAI integration tests temporarily disabled: crashes the xdist runner in CI.",
skip_if_azure_openai_integration_tests_disabled = pytest.mark.skipif(
os.getenv("AZURE_OPENAI_ENDPOINT", "") in ("", "https://test-endpoint.openai.azure.com")
or (os.getenv("AZURE_OPENAI_EMBEDDING_MODEL", "") == "" and os.getenv("AZURE_OPENAI_MODEL", "") == ""),
reason="No real Azure OpenAI endpoint or embedding deployment provided; skipping integration tests.",
)