Skip to content

Add python test case for service/multiple-services Spector scenario - #10946

Closed
Yuchao Yan (msyyc) with Copilot wants to merge 2 commits into
mainfrom
copilot/add-python-test-case-for-spector
Closed

Yuchao Yan (msyyc) with Copilot wants to merge 2 commits into
mainfrom
copilot/add-python-test-case-for-spector

Conversation

Copilot AI commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Adds Python mock_api coverage for the service/multiple-services Spector scenario, which defines two versioned services (ServiceA, ServiceB) without explicit @client and therefore generates two separate root clients, each with an operations group and a sub_namespace group.

Changes

  • Enable regeneration: removed service/multiple-services from SKIP_SPECS in eng/scripts/ci/regenerate-common.ts.
  • Tests: added sync tests/mock_api/azure/test_service_multiple_services.py and async asynctests/test_service_multiple_services_async.py, exercising op_a/sub_op_a (api-version av2) and op_b/sub_op_b (api-version bv2).
  • Changelog: added an internal Chronus entry.

The tests assert each operation returns 204 via the default per-service api-version:

from service.multipleservices.servicea import ServiceAClient
from service.multipleservices.serviceb import ServiceBClient

with ServiceAClient() as client_a:
    client_a.operations.op_a()
    client_a.sub_namespace.sub_op_a()

with ServiceBClient() as client_b:
    client_b.operations.op_b()
    client_b.sub_namespace.sub_op_b()

Copilot AI and others added 2 commits June 10, 2026 09:00
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
@msyyc

Copy link
Copy Markdown
Contributor

move to #10948

@msyyc
Yuchao Yan (msyyc) deleted the copilot/add-python-test-case-for-spector branch June 10, 2026 11:42
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.

2 participants