Optional teams package unit test fix - #520
Merged
Rodrigo Brandão (rodrigobr-msft) merged 1 commit intoAug 4, 2026
Merged
Conversation
Rodrigo Brandão (rodrigobr-msft)
marked this pull request as ready for review
August 4, 2026 17:24
Rodrigo Brandão (rodrigobr-msft)
requested a review
from a team
as a code owner
August 4, 2026 17:24
Copilot started reviewing on behalf of
Rodrigo Brandão (rodrigobr-msft)
August 4, 2026 17:25
View session
Kyle Rohn (kylerohn-msft)
approved these changes
Aug 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes the Teams hosting unit tests resilient in environments where the microsoft-agents-hosting-teams package is not installed, and reduces CI noise/failures by filtering a specific deprecation warning in pytest configuration.
Changes:
- Skip
tests/hosting_teams/test_teams_agent_extension.pyunless running on Python 3.12+ andmicrosoft_agents.hosting.teamsis importable (viaimportlib.util.find_spec). - Add a
pytest.inifilterwarningsentry to ignore a specificDeprecationWarningmessage (“The bot client is deprecated…”).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/hosting_teams/test_teams_agent_extension.py | Makes Teams tests conditional on both Python version support and the Teams hosting module being installed. |
| pytest.ini | Ignores a specific deprecation warning message so warnings-as-errors test runs don’t fail on it. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rodrigo Brandão (rodrigobr-msft)
deleted the
users/robrandao/teams-unit-test-fix
branch
August 4, 2026 17:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.