Skip to content

Commit 4b1c747

Browse files
committed
test: Mock client.delete to satisfy strict-no-cover checks
1 parent b1ebd7d commit 4b1c747

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/shared/test_streamable_http.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,11 @@ async def test_streamable_http_client_reconnect_failure_propagates_error() -> No
23252325
"""
23262326
client = AsyncMock(spec=httpx2.AsyncClient)
23272327

2328+
# Mock client.delete for session termination
2329+
mock_delete_response = AsyncMock(spec=httpx2.Response)
2330+
mock_delete_response.status_code = 204
2331+
client.delete.return_value = mock_delete_response
2332+
23282333
# Mock post_writer requests:
23292334
# 1. initialize request -> returns response with session ID
23302335
# 2. notifications/initialized -> returns 202 Accepted

0 commit comments

Comments
 (0)