File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tests/server/request_handlers Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 88import httpx
99import pytest
1010
11+
1112from a2a .server .agent_execution import AgentExecutor , RequestContext
1213from 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
You can’t perform that action at this time.
0 commit comments