Skip to content

[python] Add mock API tests for azure/versioning/previewVersion Spector scenario#10602

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-test-case-for-pull-4370
Draft

[python] Add mock API tests for azure/versioning/previewVersion Spector scenario#10602
Copilot wants to merge 2 commits intomainfrom
copilot/add-test-case-for-pull-4370

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

The azure/versioning/previewVersion Spector scenario (surfaced via Azure/typespec-azure#4370) lacked Python SDK mock API test coverage.

Changes

  • Sync + async tests for all three mockapi scenarios in the azure/versioning/previewVersion spec:
    • test_get_widget — GET with preview API version, asserts color field present in response
    • test_update_widget_color — PATCH with application/merge-patch+json (preview-only op); asserts ValueError when called with stable API version
    • test_list_widgets — GET with stable API version; asserts ValueError when preview-only color param is passed with stable API version
  • Changelog entry (internal) for @typespec/http-client-python

Copilot AI changed the title [WIP] Add test case for pull request 4370 [python] Add mock API tests for azure/versioning/previewVersion Spector scenario May 5, 2026
Copilot AI requested a review from msyyc May 5, 2026 23:14
Copilot finished work on behalf of msyyc May 5, 2026 23:14
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.

[python] add test case for https://github.com/Azure/typespec-azure/pull/4370

2 participants