Skip to content

Update multipart file type variant tests#47750

Closed
dargilco wants to merge 78 commits into
mainfrom
dargilco/update-multipart-filetype-variants-test
Closed

Update multipart file type variant tests#47750
dargilco wants to merge 78 commits into
mainfrom
dargilco/update-multipart-filetype-variants-test

Conversation

@dargilco

@dargilco dargilco commented Jun 29, 2026

Copy link
Copy Markdown
Member

The method _normalize_multipart_file_entry in azure\ai\projects\_utils\utils.py now uses "application/octet-stream" as the content type default, as seen here: https://github.com/Azure/azure-sdk-for-python/blob/feature/azure-ai-projects/2.3.0/sdk/ai/azure-ai-projects/azure/ai/projects/_utils/utils.py#L66 . This is a result of an emitter change. There was no default before (see this commit, which added this new default following using new emitter: 7f2a28c#diff-956744d63fbe9ee2ad5d51c6959f9f17f7d173656de8fabad16753ce7fe156cfR66 )

Update unit-tests to reflect that change in default value.

This was the original CoPilot comment in the PR: #47500
This helper now injects an explicit content-type ("application/octet-stream") when normalizing bare file values, which changes the normalized multipart tuples produced by prepare_multipart_form_data. The offline unit tests in tests/models/test_multipart_filetype_variants.py currently assume that variants normalize to an equivalent representation when the caller did not explicitly provide a content-type; with this change they will need to be updated accordingly (e.g., update the expected/default content-type and/or the explicit content-type variant).

dargilco and others added 30 commits June 2, 2026 13:46
* sample update routines

* Add test for routines samples and update sample skipping logic
* sample update routines

* Add test for routines samples and update sample skipping logic
dargilco and others added 17 commits June 24, 2026 15:55
* Refactor skill zip handling and enhance RBAC setup options

- Updated skill zip creation to use a new `zip` function for consistency.
- Added environment variable support for storing agent responses.
- Enhanced RBAC setup to allow skipping via an environment variable.
- Introduced new test cases for hosted agents and skills with environment variable configurations.
- Added binary assets for testing purposes.

* test data

* Update asset tag and remove unused environment variable in sample tests

* fix test

* fix test

* fix test

* test

* use lazy load for replay
…ath". Add `overwrite` option when downloading to path. (#47673)
#47679)

* Update hosted agent samples and tests to include responses invocation and refactor code handling

* Update hosted agent samples and tests to include environment variable setup and enhance OpenAI response handling

* fix test

* fix test

* resolve conflict

* fix test
Base automatically changed from feature/azure-ai-projects/2.3.0 to main June 29, 2026 19:59
@dargilco dargilco closed this Jun 29, 2026
@dargilco
dargilco deleted the dargilco/update-multipart-filetype-variants-test branch June 29, 2026 20:10
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.

2 participants