Skip to content

Optional teams package unit test fix - #520

Merged
Rodrigo Brandão (rodrigobr-msft) merged 1 commit into
mainfrom
users/robrandao/teams-unit-test-fix
Aug 4, 2026
Merged

Optional teams package unit test fix#520
Rodrigo Brandão (rodrigobr-msft) merged 1 commit into
mainfrom
users/robrandao/teams-unit-test-fix

Conversation

@rodrigobr-msft

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 4, 2026 17:24
@rodrigobr-msft
Rodrigo Brandão (rodrigobr-msft) marked this pull request as ready for review August 4, 2026 17:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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.py unless running on Python 3.12+ and microsoft_agents.hosting.teams is importable (via importlib.util.find_spec).
  • Add a pytest.ini filterwarnings entry to ignore a specific DeprecationWarning message (“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.

@rodrigobr-msft
Rodrigo Brandão (rodrigobr-msft) merged commit c15c089 into main Aug 4, 2026
11 checks passed
@rodrigobr-msft
Rodrigo Brandão (rodrigobr-msft) deleted the users/robrandao/teams-unit-test-fix branch August 4, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants