test: updated the unit testcases to update the latest agent framework version#862
Merged
Roopan-Microsoft merged 3 commits intodev-v4from Mar 17, 2026
Merged
test: updated the unit testcases to update the latest agent framework version#862Roopan-Microsoft merged 3 commits intodev-v4from
Roopan-Microsoft merged 3 commits intodev-v4from
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the test suite and requirements.txt to support a new agent-framework release candidate (rc4). Core changes rename ChatAgent→Agent, ChatMessage→Message, and run_stream→run(..., stream=True), and remove local HostedCodeInterpreterTool usage (now server-side).
Changes:
- Updated all test mocks and assertions to use new agent framework API names (
Agent,Message,runinstead ofChatAgent,ChatMessage,run_stream) - Added mocks for new
agent_framework_orchestrationssubmodules and updatedconftest.pyshared fixtures - Pinned all dependencies in
requirements.txtand added newagent-framework-*packages
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/backend/requirements.txt |
Pinned all deps, added agent-framework-core/azure-ai/orchestrations, removed semantic-kernel/autogen/babel |
src/tests/backend/conftest.py |
Added Agent, Message, AgentSession classes and agent_framework_orchestrations mock modules |
src/tests/backend/v4/orchestration/test_orchestration_manager.py |
Updated mocks/assertions for new event dispatch model and run API |
src/tests/backend/v4/orchestration/test_human_approval_manager.py |
Added agent_framework_orchestrations mocks and Message/AgentResponse |
src/tests/backend/v4/magentic_agents/test_foundry_agent.py |
Updated to Agent/Message, removed HostedCodeInterpreterTool tests |
src/tests/backend/v4/magentic_agents/common/test_lifecycle.py |
Changed chat_client→client, added config mocks |
src/tests/backend/v4/callbacks/test_response_handlers.py |
Added MockMessage, updated isinstance checks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Roopan-Microsoft
approved these changes
Mar 17, 2026
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.
Purpose
This pull request updates the test suite and requirements to support the new
agent-frameworkrelease candidate (rc4) and its related modules. The changes include updating mocks and test logic to reflect new core classes (Agent,Message), removal of the local code interpreter tool (now handled server-side), and adjustments to test dependencies and assertions. These updates ensure compatibility with the latest agent framework and streamline agent-related testing.Agent Framework Integration and Mock Updates:
agent-framework-core,agent-framework-azure-ai, andagent-framework-orchestrationstorequirements.txtto support new agent framework modules.Agent,Message,AgentSession, etc.), and created mocks for new submodules such asagent_framework_orchestrations. [1] [2] [3] [4]AgentandMessageinstead ofChatAgentandChatMessage, reflecting the new framework API. [1] [2] [3] [4] [5] [6] [7] [8] [9]Code Interpreter Tool Handling:
HostedCodeInterpreterTool; tests now assert that code interpreter functionality is handled server-side byAzureAIClient, as per rc4 changes. [1] [2] [3]Test Dependency and Mock Adjustments:
azure.identity.aioandcommon.config.app_configto ensure test isolation and compatibility.clientinstead ofchat_clientper new agent framework conventions. [1] [2]These changes collectively update the test suite for compatibility with the latest agent framework, improve test reliability, and reflect new agent lifecycle and tool handling patterns.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information