Skip to content

Add Python mock API tests for Azure LRO status metadata - #12460

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

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

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Add Python coverage for the Content Understanding- and Language-shaped LRO scenarios introduced in the Azure HTTP Specs. Update the test dependencies to versions containing the scenarios and @lroStatusMetadata.

  • Coverage: Add sync and async tests for typed status fields, successful polling, and terminal failure.
  • Example:
    result = client.begin_analyze_job(polling_interval=0, polling=polling_method).result()
    assert result == models.LanguageJobResult(documents=["document-1", "document-2", "document-3"])

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Nov 2, 2026
Copilot AI changed the title [WIP] Add test case for typespec-azure pull request 5677 Add Python mock API tests for Azure LRO status metadata Nov 2, 2026

This branch has not been deployed

No deployments
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.

[python] add test case for https://github.com/Azure/typespec-azure/pull/5677

2 participants