Skip to content

test(python): cover Azure Core API-version overrides - #12011

Draft
Yuchao Yan (msyyc) with Copilot wants to merge 2 commits into
mainfrom
copilot/microsoft-12007-add-test-case-for-pull-5176
Draft

Yuchao Yan (msyyc) with Copilot wants to merge 2 commits into
mainfrom
copilot/microsoft-12007-add-test-case-for-pull-5176

Conversation

Copilot AI commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Adds Python mock API coverage for the Azure Core child-client API-version override scenario introduced by Azure/typespec-azure#5176.

  • Spector dependencies

    • Updates Azure HTTP specs, Azure Core, and TCGC prereleases required to compile the scenario.
  • Mock API coverage

    • Adds synchronous and asynchronous tests for the generated ApiVersionOverrideClient.
    • Verifies the child client call satisfies the Spector expectation for the overridden API version.
client.legacy_client.get()
# Sends: api-version=2022-10-01
  • Changelog
    • Adds an internal @typespec/http-client-python Chronus entry.

@azure-pipelines

Copy link
Copy Markdown
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.

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Sep 18, 2026
Copilot AI changed the title [WIP] Add test case for typespec-azure pull request 5176 test(python): cover Azure Core API-version overrides Sep 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

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/5176

2 participants