@@ -433,7 +433,7 @@ async def test_close(self, transport, mock_httpx_client):
433433
434434class TestStreamingErrors :
435435 @pytest .mark .asyncio
436- @patch ('a2a.client.transports.http_helpers.aconnect_sse ' )
436+ @patch ('a2a.client.transports.http_helpers._SSEEventSource ' )
437437 async def test_send_message_streaming_sse_error (
438438 self ,
439439 mock_aconnect_sse : AsyncMock ,
@@ -457,7 +457,7 @@ async def test_send_message_streaming_sse_error(
457457 pass
458458
459459 @pytest .mark .asyncio
460- @patch ('a2a.client.transports.http_helpers.aconnect_sse ' )
460+ @patch ('a2a.client.transports.http_helpers._SSEEventSource ' )
461461 async def test_send_message_streaming_request_error (
462462 self ,
463463 mock_aconnect_sse : AsyncMock ,
@@ -483,7 +483,7 @@ async def test_send_message_streaming_request_error(
483483 pass
484484
485485 @pytest .mark .asyncio
486- @patch ('a2a.client.transports.http_helpers.aconnect_sse ' )
486+ @patch ('a2a.client.transports.http_helpers._SSEEventSource ' )
487487 async def test_send_message_streaming_timeout (
488488 self ,
489489 mock_aconnect_sse : AsyncMock ,
@@ -560,7 +560,7 @@ async def test_extensions_added_to_request(
560560 )
561561
562562 @pytest .mark .asyncio
563- @patch ('a2a.client.transports.http_helpers.aconnect_sse ' )
563+ @patch ('a2a.client.transports.http_helpers._SSEEventSource ' )
564564 async def test_send_message_streaming_server_error_propagates (
565565 self ,
566566 mock_aconnect_sse : AsyncMock ,
0 commit comments