[python] Add mock_api coverage for namespace-scoped @usage scenario#10807
Draft
Copilot wants to merge 3 commits into
Draft
[python] Add mock_api coverage for namespace-scoped @usage scenario#10807Copilot wants to merge 3 commits into
@usage scenario#10807Copilot wants to merge 3 commits into
Conversation
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for Azure typespec pull request 4493
[python] Add mock_api coverage for namespace-scoped May 26, 2026
@usage scenario
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.
This PR adds Python SDK mock API coverage for the new Azure Spector scenario introduced in Azure/typespec-azure PR #4493, where
@usageis applied at a namespace level and propagates to nested types.It ensures the generated
usageclient surface is exercised for the newnamespaceModelSerializableoperation in both sync and async test suites.Scenario alignment (Azure Spector update)
@azure-tools/azure-http-specsinpackages/http-client-pythonto a version containingAzure_ClientGenerator_Core_Usage_NamespaceUsage.Azure mock_api test coverage (sync + async)
tests/mock_api/azure/test_azure_client_generator_core_usage.pytests/mock_api/azure/asynctests/test_azure_client_generator_core_usage_async.pytest_namespace_model_serializablein both files to validate SDK invocation of the new namespace-usage route.Change log
@typespec/http-client-pythondocumenting the test coverage addition.