[python] Add mock API tests for service/multiple-services Spector scenario#10258
Draft
[python] Add mock API tests for service/multiple-services Spector scenario#10258
Conversation
Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/6510196f-b43e-4ed0-ba96-5d940063074d Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for pull request 4158
[python] Add mock API tests for service/multiple-services Spector scenario
Apr 2, 2026
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 Python SDK mock API tests for the
service/multiple-servicesSpector scenario, which tests that multiple services defined without an explicit@clientdecorator generate separate root clients.Changes
@azure-tools/azure-http-specs0.1.0-alpha.39-dev.4→0.1.0-alpha.39-dev.8(first version containing theservice/multiple-servicesspec)regenerate-common.ts: Addedservice/multiple-servicesentry with namespaceservice.multipleservicesrequirements.txt: Added-e ./generated/service-multiple-servicestest_service_multiple_services.py+ async counterpart): ValidatesServiceAClient.operations.op_a()andServiceAClient.sub_namespace.sub_op_a()— correctapi-version=av2succeeds (204), wrongapi-version=av1raisesHttpResponseError