Skip to content

Commit a4f7109

Browse files
authored
Merge branch 'main' into kthota/task_id_mismatch
2 parents 962a25f + 3b811ca commit a4f7109

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/server/request_handlers/test_jsonrpc_handler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import httpx
99
import pytest
1010

11+
1112
from a2a.server.agent_execution import AgentExecutor, RequestContext
1213
from a2a.server.agent_execution.request_context_builder import (
1314
RequestContextBuilder,
@@ -777,6 +778,7 @@ async def test_on_get_push_notification_no_push_notifier(self) -> None:
777778
self.assertIsInstance(response.root, JSONRPCErrorResponse)
778779
self.assertEqual(response.root.error, UnsupportedOperationError()) # type: ignore
779780

781+
780782
async def test_on_set_push_notification_no_push_notifier(self) -> None:
781783
"""Test set_push_notification with no push notifier configured."""
782784
# Arrange
@@ -810,6 +812,7 @@ async def test_on_set_push_notification_no_push_notifier(self) -> None:
810812
self.assertIsInstance(response.root, JSONRPCErrorResponse)
811813
self.assertEqual(response.root.error, UnsupportedOperationError()) # type: ignore
812814

815+
813816
async def test_on_message_send_internal_error(self) -> None:
814817
"""Test on_message_send with an internal error."""
815818
# Arrange
@@ -839,6 +842,7 @@ async def raise_server_error(*args, **kwargs):
839842
self.assertIsInstance(response.root, JSONRPCErrorResponse)
840843
self.assertIsInstance(response.root.error, InternalError) # type: ignore
841844

845+
842846
async def test_on_message_stream_internal_error(self) -> None:
843847
"""Test on_message_send_stream with an internal error."""
844848
# Arrange

0 commit comments

Comments
 (0)