⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Adds test coverage for the documentation namespace spec (bullet points, numbered lists, text formatting) to azure and unbranded mock API test suites, mirroring the existing generic_mock_api_tests.

Changes

  • New test files:

    • test_specs_documentation.py in azure/mock_api_tests and unbranded/mock_api_tests
    • test_specs_documentation_async.py in azure/mock_api_tests/asynctests and unbranded/mock_api_tests/asynctests
  • Test coverage: All 6 scenarios from TypeSpec documentation spec:

  • Changelog: Added entry under version 0.24.2

Tests follow the same pattern as other azure/unbranded tests (e.g., encode_duration).

Original prompt

This section details on the original issue you should resolve

<issue_title>[python] add test case</issue_title>
<issue_description>GOAL:

  • add test case in /workspaces/typespec/packages/http-client-python/generator/test/generic_mock_api_tests/test_specs_documentation.py and /workspaces/typespec/packages/http-client-python/generator/test/generic_mock_api_tests/asynctests/test_specs_documentation_async.py for [http-specs] Fix bulletPointsModel API signature to match runtime behavior #9200 which fixed a case then we could test it.
  • add test case in /workspaces/typespec/packages/http-client-python/generator/test/azure/mock_api_tests and /workspaces/typespec/packages/http-client-python/generator/test/unbranded/mock_api_tests for https://github.com/microsoft/typespec/pull/9259/files which added a new case

NOTE:

  • DO add changelog
  • DO format your changed files before commit</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add test cases for HTTP client Python Add Python test cases for documentation namespace in azure and unbranded Jan 15, 2026
Copilot AI requested a review from msyyc January 15, 2026 03:43
@msyyc msyyc force-pushed the copilot/add-test-case-http-client-python branch from 6f31326 to fa0a5a6 Compare January 15, 2026 04:53
@msyyc msyyc marked this pull request as ready for review January 15, 2026 04:54
@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 Jan 15, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Add test case

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 15, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9387
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9387

commit: b18a78e

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

2 participants