Skip to content

[python] Align response-as-bool mock API coverage with split HeadAsBoolean Spector scenarios - #11408

Draft
msyyc with Copilot wants to merge 2 commits into
mainfrom
copilot/python-add-test-case-4981
Draft

[python] Align response-as-bool mock API coverage with split HeadAsBoolean Spector scenarios#11408
msyyc with Copilot wants to merge 2 commits into
mainfrom
copilot/python-add-test-case-4981

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

response-as-bool coverage in http-client-python was tied to the pre-split HeadAsBoolean scenario shape. This updates the test-spec dependency so existing sync/async bool HEAD tests track the new exists / notExists scenario split introduced in Azure specs.

  • Spec alignment

    • Bumped @azure-tools/azure-http-specs in packages/http-client-python from 0.1.0-alpha.43 to 0.1.0-alpha.44-dev.5 (the version containing:
      • Azure_ClientGenerator_Core_ResponseAsBool_HeadAsBoolean_exists
      • Azure_ClientGenerator_Core_ResponseAsBool_HeadAsBoolean_notExists)
    • Updated package-lock.json accordingly.
  • Release notes

    • Added a Chronus internal change entry for @typespec/http-client-python.
  • Scenario intent reflected by existing tests

    assert client.head_as_boolean.exists() is True
    assert client.head_as_boolean.not_exists() is False

@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.

… split scenarios

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 Jul 27, 2026
Copilot AI changed the title [WIP] Add test case for pull request 4981 [python] Align response-as-bool mock API coverage with split HeadAsBoolean Spector scenarios Jul 27, 2026
Copilot finished work on behalf of msyyc July 27, 2026 09:02
Copilot AI requested a review from msyyc July 27, 2026 09:02
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/4981

2 participants