Skip to content

Python: Integration tests for Azure AI client and fixes in samples#2387

Merged
dmytrostruk merged 7 commits intomicrosoft:mainfrom
dmytrostruk:azure-ai-tests
Nov 22, 2025
Merged

Python: Integration tests for Azure AI client and fixes in samples#2387
dmytrostruk merged 7 commits intomicrosoft:mainfrom
dmytrostruk:azure-ai-tests

Conversation

@dmytrostruk
Copy link
Member

@dmytrostruk dmytrostruk commented Nov 21, 2025

Motivation and Context

  1. Added basic integration tests for Azure AI client, more tests will be added when testing endpoint will support more tool types.
  2. Fixed samples.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@dmytrostruk dmytrostruk self-assigned this Nov 21, 2025
Copilot AI review requested due to automatic review settings November 21, 2025 20:09
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Nov 21, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL15461235284% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
2221 130 💤 0 ❌ 0 🔥 54.301s ⏱️

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds basic integration tests for the Azure AI client (AzureAIClient), testing fundamental chat agent functionality including basic runs, streaming, and tool execution. The tests complement existing unit tests and will be expanded with additional tool types as testing endpoints support them.

Key Changes:

  • Added integration test infrastructure with environment-based skip logic
  • Created a reusable temporary_chat_client context manager for test setup/cleanup
  • Added three integration tests covering basic run, streaming, and tool execution scenarios

@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Nov 21, 2025
@dmytrostruk dmytrostruk changed the title Python: Integration tests for Azure AI client Python: Integration tests for Azure AI client and fixes in samples Nov 21, 2025
@dmytrostruk dmytrostruk added this pull request to the merge queue Nov 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 21, 2025
@dmytrostruk dmytrostruk added this pull request to the merge queue Nov 22, 2025
Merged via the queue into microsoft:main with commit ee8936d Nov 22, 2025
49 of 58 checks passed
arisng pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
…icrosoft#2387)

* Added integration tests

* Update python/packages/azure-ai/tests/test_azure_ai_client.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Small fixes in samples

* Small fix

* Small fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants