Skip to content

test(python): add headModel mock API test for type/model/visibility spec#10593

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-test-case-for-pull-9884
Draft

test(python): add headModel mock API test for type/model/visibility spec#10593
Copilot wants to merge 2 commits intomainfrom
copilot/add-test-case-for-pull-9884

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

The headModel scenario in packages/http-specs/specs/type/model/visibility had no Python SDK mock API test coverage, while all other scenarios (get, put, patch, post, delete, putReadOnlyModel) were already covered.

Changes

  • tests/mock_api/shared/test_typetest_model_visibility.py — adds test_head_model sync test asserting the HEAD request with query_prop=123 returns True
  • tests/mock_api/shared/asynctests/test_typetest_model_visibility_async.py — adds matching async test

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • iojs.org
    • Triggering command: /usr/bin/curl curl --fail --compressed -q -L -s REDACTED -o - (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@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 May 4, 2026
Copilot AI changed the title [WIP] Add test case for pull request 9884 test(python): add headModel mock API test for type/model/visibility spec May 4, 2026
Copilot finished work on behalf of msyyc May 4, 2026 23:10
Copilot AI requested a review from msyyc May 4, 2026 23:10
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/microsoft/typespec/pull/9884

2 participants