[python] upgrade latest dev version of azure-http-specs#10057
Queued
[python] upgrade latest dev version of azure-http-specs#10057
Conversation
Copilot
AI
changed the title
[WIP] [python] Add test case for pull request 4054
[python] Add mock API test cases for client-initialization Mar 17, 2026
individually scenarios and QueryParamClient
individually scenarios and QueryParamClient425dfcc to
1d25a98
Compare
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
Collaborator
|
You can try these changes here
|
ChenxiJiang333
approved these changes
Mar 18, 2026
Any commits made after this event will not be merged.
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 18, 2026
Adds missing Python mock API test coverage for the `azure/client-generator-core/client-initialization` specs, following the fix in Azure/typespec-azure#4054 which added the required `service:` parameter to `@client` decorators. ## Changes - **Bump `@azure-tools/azure-http-specs`** to `0.1.0-alpha.39-dev.3` (includes the `service:` fix) - **`default` scenario** — add `test_query_param_client` (sync + async); previously the only untested client in this spec - **`individually` scenario** — new test files covering all 6 `IndividuallyNested*` clients (sync + async): - `IndividuallyNestedWithPathClient` — `blobName` elevated as path param - `IndividuallyNestedWithQueryClient` — `blobName` elevated as query param - `IndividuallyNestedWithHeaderClient` — `name` elevated as header param - `IndividuallyNestedWithMultipleClient` — `name` + `region` both elevated - `IndividuallyNestedWithMixedClient` — `name` elevated, `region` stays at method level - `IndividuallyNestedWithParamAliasClient` — `blobName` with `@paramAlias("blob")` ```python # Example: individually-initialized client — no blobName needed on operations with IndividuallyNestedWithPathClient("test-blob") as client: client.with_query(format="text") client.get_standalone() client.delete_standalone() # Mixed: name at client level, region still required per-call with IndividuallyNestedWithMixedClient("test-name-value") as client: client.with_query(region="us-west", format="text") client.get_standalone(region="us-west") ``` <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>[python] add test case for Azure/typespec-azure#4054 > </issue_title> > <issue_description>follow skill https://github.com/microsoft/typespec/blob/main/.github/skills/python-sdk-spector-mock-api-tests/SKILL.md to write test case for Azure/typespec-azure#4054 > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes #10056 <!-- START COPILOT CODING AGENT TIPS --> --- 💬 Send tasks to Copilot coding agent from [Slack](https://gh.io/cca-slack-docs) and [Teams](https://gh.io/cca-teams-docs) to turn conversations into code. Copilot posts an update in your thread when it's finished. --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds missing Python mock API test coverage for the
azure/client-generator-core/client-initializationspecs, following the fix in Azure/typespec-azure#4054 which added the requiredservice:parameter to@clientdecorators.Changes
@azure-tools/azure-http-specsto0.1.0-alpha.39-dev.3(includes theservice:fix)defaultscenario — addtest_query_param_client(sync + async); previously the only untested client in this specindividuallyscenario — new test files covering all 6IndividuallyNested*clients (sync + async):IndividuallyNestedWithPathClient—blobNameelevated as path paramIndividuallyNestedWithQueryClient—blobNameelevated as query paramIndividuallyNestedWithHeaderClient—nameelevated as header paramIndividuallyNestedWithMultipleClient—name+regionboth elevatedIndividuallyNestedWithMixedClient—nameelevated,regionstays at method levelIndividuallyNestedWithParamAliasClient—blobNamewith@paramAlias("blob")Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.