-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add async test for file search tool and add test recordings #44316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 async test coverage for the file search tool functionality and enables test recording for these tests. The PR also includes an unrelated black formatting fix in an evaluation sample file.
Key changes:
- Added async versions of file search tests (both streaming and non-streaming)
- Enabled test recording by replacing
pytest.mark.skipifwith@recorded_by_proxydecorators - Refactored sync tests to use helper method
_validate_agent_versionfor consistency - Applied black formatting to evaluation sample file
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_file_search_stream_async.py |
New async test file for streaming file search functionality |
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_file_search_async.py |
New async test file with two test methods: basic file search and multi-turn conversation |
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_file_search_stream.py |
Enabled test recording, refactored to use _validate_agent_version helper, removed pytest import |
sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_file_search.py |
Enabled test recording for all three test methods, refactored validation code to use helper method |
sdk/ai/azure-ai-projects/samples/evaluations/sample_evaluations_score_model_grader_with_image.py |
Applied black formatting: converted single quotes to double quotes, adjusted line breaks for consistency |
sdk/ai/azure-ai-projects/assets.json |
Updated test recording tag to reference new recordings |
Unrelated: