[python] Add mock API tests for Azure/typespec-azure PR #4959 Spector scenarios - #11410
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
…Spector specs Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
…ientApiVersions Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
|
Copilot resolve the merge conflicts in this pull request |
…-for-4959 # Conflicts: # packages/http-client-python/package-lock.json # packages/http-client-python/package.json # packages/http-client-python/tests/mock_api/azure/asynctests/test_azure_arm_operationtemplates_async.py # packages/http-client-python/tests/mock_api/azure/test_azure_arm_operationtemplates.py Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Resolved the merge conflicts with |
commit: |
There was a problem hiding this comment.
Pull request overview
Adds new Python mock API coverage for the @clientApiVersions Spector scenario (sync + async), and records the addition via a Chronus changelog entry. This fits into the http-client-python test suite’s ongoing coverage of Spector scenarios to validate generated SDK behavior against the mock server.
Changes:
- Added a sync mock API pytest covering
ClientApiVersionsClient.send_api_version()with an olderapi_version. - Added an async counterpart test using
pytest-asyncio. - Added a
.chronus/changesentry documenting the new mock API test coverage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/http-client-python/tests/mock_api/azure/test_azure_client_generator_core_api_version_client_api_versions.py | New sync mock API test for the @clientApiVersions scenario. |
| packages/http-client-python/tests/mock_api/azure/asynctests/test_azure_client_generator_core_api_version_client_api_versions_async.py | New async mock API test mirroring the sync scenario. |
| .chronus/changes/python-spector-tests-arm-optemplate-clientapiversions-2026-7-27-8-55-0.md | Changelog entry documenting the added mock API tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
All changed packages have been documented.
Show changes
|
Python emitter diffBaseline No changes to generated output. Rendered diff: inline on the run summary, or the emitter-diff-html artifact. Informational check (eng/emitter-diff); does not block the PR. |
|
You can try these changes here
|
Adds Python SDK mock API tests for new Spector scenarios introduced in Azure/typespec-azure#4959.