[python] Add test for client-doc spector scenario (Azure typespec-azure #4268)#10888
Draft
Copilot wants to merge 3 commits into
Draft
[python] Add test for client-doc spector scenario (Azure typespec-azure #4268)#10888Copilot wants to merge 3 commits into
Copilot 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 4268
[python] Add test for client-doc spector scenario (Azure typespec-azure #4268)
Jun 4, 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 coverage for the spector cases introduced in Azure/typespec-azure#4268. Of the two new scenarios under
azure/client-generator-core/, onlyclient-docis generatable by the python emitter (response-as-boolis already inSKIP_SPECS).Changes
@clientDocscenario:harvestPOST round-trip against the mock server.@clientDocappend mode:Plantmodel docstring retains base doc and appends client-specific text.@clientDocreplace mode:harvestoperation docstring fully overrides the base doc.internalchronus entry for@typespec/http-client-python.response-as-boolis intentionally skipped in the emitter regeneration config, so no client is generated and no test is added for it.