Skip to content

Conversation

@dargilco
Copy link
Member

@dargilco dargilco commented Dec 5, 2025

  • Add async test for Agent function tool.
  • Enable recordings in Agent function tool tests.
  • Remove remaining old decorators for OpenAI recordings, in favor of new ones in recording test tool library.
  • Remove old OpenAI recording code from Test Base, since we now have this code in the recording test tool library.

@dargilco dargilco changed the title Enable recordings for Agent function tool Enable recordings for Agent function tool, and switch over to new recording decorators Dec 5, 2025
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 enables test recording capabilities for Agent function tool tests and consolidates test infrastructure by removing temporary custom decorators in favor of standardized ones from the devtools_testutils library. The changes improve test maintainability and add comprehensive async test coverage for Agent function tools.

Key changes:

  • Adds async versions of Agent function tool tests with full multi-turn conversation support
  • Migrates all OpenAI client tests from custom recording decorators to standardized devtools_testutils decorators
  • Removes over 200 lines of temporary decorator implementations from test_base.py

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/ai/azure-ai-projects/tests/test_base.py Removes unused imports and deprecated custom recording decorators (recorded_by_proxy_httpx, recorded_by_proxy_async_httpx)
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_function_tool_async.py Adds comprehensive async tests for Agent function tools with recording support
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_function_tool.py Migrates to standardized recording decorators and replaces manual assertions with _validate_agent_version helper
sdk/ai/azure-ai-projects/tests/agents/test_conversation_items_crud_async.py Updates to use standardized recorded_by_proxy_async decorator
sdk/ai/azure-ai-projects/tests/agents/test_conversation_items_crud.py Updates to use standardized recorded_by_proxy decorator and removes outdated TODO comment
sdk/ai/azure-ai-projects/tests/agents/test_conversation_crud_async.py Updates decorator and adds helpful test execution comment
sdk/ai/azure-ai-projects/tests/agents/test_conversation_crud.py Updates decorator and adds helpful test execution comment
sdk/ai/azure-ai-projects/tests/agents/telemetry/test_responses_instrumentor_metrics.py Migrates all tests to use standardized recording decorator
sdk/ai/azure-ai-projects/tests/agents/telemetry/test_responses_instrumentor_async.py Migrates all async tests to use standardized recording decorator
sdk/ai/azure-ai-projects/tests/agents/telemetry/test_responses_instrumentor.py Migrates all tests to use standardized recording decorator

@dargilco dargilco enabled auto-merge (squash) December 5, 2025 23:25
@dargilco dargilco merged commit f39bb85 into main Dec 5, 2025
20 checks passed
@dargilco dargilco deleted the dargilco/test-updates branch December 5, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants