diff --git a/.chronus/changes/python-sse-protocol-info-2026-9-18-1-59-32.md b/.chronus/changes/python-sse-protocol-info-2026-9-18-1-59-32.md new file mode 100644 index 00000000000..a6e8333f6bf --- /dev/null +++ b/.chronus/changes/python-sse-protocol-info-2026-9-18-1-59-32.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@typespec/http-client-python" +--- + +Add mock API coverage for the unique SSE protocol model name. diff --git a/packages/http-client-python/package-lock.json b/packages/http-client-python/package-lock.json index 68ccfe2a0af..8cd0a72dcc7 100644 --- a/packages/http-client-python/package-lock.json +++ b/packages/http-client-python/package-lock.json @@ -29,7 +29,7 @@ "@typespec/compiler": "^1.16.0", "@typespec/events": "~0.86.0", "@typespec/http": "^1.16.0", - "@typespec/http-specs": "0.1.0-alpha.42", + "@typespec/http-specs": "0.1.0-alpha.43", "@typespec/openapi": "^1.16.0", "@typespec/rest": "~0.86.0", "@typespec/spec-api": "0.1.0-alpha.17", @@ -2264,9 +2264,9 @@ } }, "node_modules/@typespec/http-specs": { - "version": "0.1.0-alpha.42", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@typespec/http-specs/-/http-specs-0.1.0-alpha.42.tgz", - "integrity": "sha1-JIAe4TRV5fAlto13GXdBpgA0elw=", + "version": "0.1.0-alpha.43", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@typespec/http-specs/-/http-specs-0.1.0-alpha.43.tgz", + "integrity": "sha1-AjZYjodquNOsBqU9pHTMOqTio+g=", "dev": true, "license": "MIT", "dependencies": { diff --git a/packages/http-client-python/package.json b/packages/http-client-python/package.json index dcce8fb07b9..d80b52fd194 100644 --- a/packages/http-client-python/package.json +++ b/packages/http-client-python/package.json @@ -121,7 +121,7 @@ "@typespec/sse": "~0.86.0", "@typespec/streams": "~0.86.0", "@typespec/xml": "~0.86.0", - "@typespec/http-specs": "0.1.0-alpha.42", + "@typespec/http-specs": "0.1.0-alpha.43", "@types/js-yaml": "~4.0.5", "@types/node": "~25.0.2", "@types/semver": "7.5.8", diff --git a/packages/http-client-python/tests/mock_api/shared/asynctests/test_streaming_sse_async.py b/packages/http-client-python/tests/mock_api/shared/asynctests/test_streaming_sse_async.py index 66c5f1abb0a..ef8866c3293 100644 --- a/packages/http-client-python/tests/mock_api/shared/asynctests/test_streaming_sse_async.py +++ b/packages/http-client-python/tests/mock_api/shared/asynctests/test_streaming_sse_async.py @@ -12,7 +12,7 @@ from streaming.sse._utils.streaming_base import AsyncStream from streaming.sse.named.models import ResponseCreated, ResponseDelta from streaming.sse.protocol.data.models import WithEnvelope1 -from streaming.sse.protocol.models import Info as ProtocolInfo +from streaming.sse.protocol.models import ProtocolInfo from streaming.sse.retrieve.models import FinalResult, PartialResult, RetrievalRequest from streaming.sse.unnamed.models import Info diff --git a/packages/http-client-python/tests/mock_api/shared/test_streaming_sse.py b/packages/http-client-python/tests/mock_api/shared/test_streaming_sse.py index 405b44983e7..1a31d28841d 100644 --- a/packages/http-client-python/tests/mock_api/shared/test_streaming_sse.py +++ b/packages/http-client-python/tests/mock_api/shared/test_streaming_sse.py @@ -11,7 +11,7 @@ from streaming.sse._utils.streaming_base import Stream from streaming.sse.named.models import ResponseCreated, ResponseDelta from streaming.sse.protocol.data.models import WithEnvelope1 -from streaming.sse.protocol.models import Info as ProtocolInfo +from streaming.sse.protocol.models import ProtocolInfo from streaming.sse.retrieve.models import FinalResult, PartialResult, RetrievalRequest from streaming.sse.unnamed.models import Info