@@ -120,9 +120,7 @@ def agent_card():
120120 return AgentCard (
121121 name = 'test_agent' ,
122122 version = '1.0' ,
123- capabilities = AgentCapabilities (
124- streaming = True , push_notifications = True
125- ),
123+ capabilities = AgentCapabilities (streaming = True , push_notifications = True ),
126124 )
127125
128126
@@ -610,7 +608,9 @@ async def mock_current_result():
610608
611609
612610@pytest .mark .asyncio
613- async def test_on_message_send_with_push_notification_in_non_blocking_request (agent_card ):
611+ async def test_on_message_send_with_push_notification_in_non_blocking_request (
612+ agent_card ,
613+ ):
614614 """Test that push notification callback is called during background event processing for non-blocking requests."""
615615 mock_task_store = AsyncMock (spec = TaskStore )
616616 mock_push_notification_store = AsyncMock (spec = PushNotificationConfigStore )
@@ -750,7 +750,9 @@ async def mock_consume_and_break_on_interrupt(
750750
751751
752752@pytest .mark .asyncio
753- async def test_on_message_send_with_push_notification_no_existing_Task (agent_card ):
753+ async def test_on_message_send_with_push_notification_no_existing_Task (
754+ agent_card ,
755+ ):
754756 """Test on_message_send for new task sets push notification info if provided."""
755757 mock_task_store = AsyncMock (spec = TaskStore )
756758 mock_push_notification_store = AsyncMock (spec = PushNotificationConfigStore )
@@ -1328,7 +1330,9 @@ async def to_coro(val):
13281330
13291331
13301332@pytest .mark .asyncio
1331- async def test_stream_disconnect_then_resubscribe_receives_future_events (agent_card ):
1333+ async def test_stream_disconnect_then_resubscribe_receives_future_events (
1334+ agent_card ,
1335+ ):
13321336 """Start streaming, disconnect, then resubscribe and ensure subsequent events are streamed."""
13331337 # Arrange
13341338 mock_task_store = AsyncMock (spec = TaskStore )
@@ -1420,7 +1424,9 @@ async def exec_side_effect(_request, queue: EventQueue):
14201424
14211425
14221426@pytest .mark .asyncio
1423- async def test_on_message_send_stream_client_disconnect_triggers_background_cleanup_and_producer_continues (agent_card ):
1427+ async def test_on_message_send_stream_client_disconnect_triggers_background_cleanup_and_producer_continues (
1428+ agent_card ,
1429+ ):
14241430 """Simulate client disconnect: stream stops early, cleanup is scheduled in background,
14251431 producer keeps running, and cleanup completes after producer finishes."""
14261432 # Arrange
@@ -2037,7 +2043,9 @@ async def test_get_task_push_notification_config_info_with_config(agent_card):
20372043
20382044
20392045@pytest .mark .asyncio
2040- async def test_get_task_push_notification_config_info_with_config_no_id (agent_card ):
2046+ async def test_get_task_push_notification_config_info_with_config_no_id (
2047+ agent_card ,
2048+ ):
20412049 """Test on_get_task_push_notification_config with no push config id"""
20422050 mock_task_store = AsyncMock (spec = TaskStore )
20432051 mock_task_store .get .return_value = Task (id = 'task_1' , context_id = 'ctx_1' )
@@ -2268,7 +2276,9 @@ async def test_list_task_push_notification_config_info_with_config(agent_card):
22682276
22692277
22702278@pytest .mark .asyncio
2271- async def test_list_task_push_notification_config_info_with_config_and_no_id (agent_card ):
2279+ async def test_list_task_push_notification_config_info_with_config_and_no_id (
2280+ agent_card ,
2281+ ):
22722282 """Test on_list_task_push_notification_configs with no push config id"""
22732283 mock_task_store = AsyncMock (spec = TaskStore )
22742284 mock_task_store .get .return_value = Task (id = 'task_1' , context_id = 'ctx_1' )
@@ -2398,7 +2408,9 @@ async def test_delete_no_task_push_notification_config_info(agent_card):
23982408
23992409
24002410@pytest .mark .asyncio
2401- async def test_delete_task_push_notification_config_info_with_config (agent_card ):
2411+ async def test_delete_task_push_notification_config_info_with_config (
2412+ agent_card ,
2413+ ):
24022414 """Test on_list_task_push_notification_configs with push config+id"""
24032415 mock_task_store = AsyncMock (spec = TaskStore )
24042416
@@ -2445,7 +2457,9 @@ async def test_delete_task_push_notification_config_info_with_config(agent_card)
24452457
24462458
24472459@pytest .mark .asyncio
2448- async def test_delete_task_push_notification_config_info_with_config_and_no_id (agent_card ):
2460+ async def test_delete_task_push_notification_config_info_with_config_and_no_id (
2461+ agent_card ,
2462+ ):
24492463 """Test on_list_task_push_notification_configs with no push config id"""
24502464 mock_task_store = AsyncMock (spec = TaskStore )
24512465
@@ -2494,7 +2508,9 @@ async def test_delete_task_push_notification_config_info_with_config_and_no_id(a
24942508
24952509@pytest .mark .asyncio
24962510@pytest .mark .parametrize ('terminal_state' , TERMINAL_TASK_STATES )
2497- async def test_on_message_send_task_in_terminal_state (terminal_state , agent_card ):
2511+ async def test_on_message_send_task_in_terminal_state (
2512+ terminal_state , agent_card
2513+ ):
24982514 """Test on_message_send when task is already in a terminal state."""
24992515 state_name = TaskState .Name (terminal_state )
25002516 task_id = f'terminal_task_{ state_name } '
@@ -2540,7 +2556,9 @@ async def test_on_message_send_task_in_terminal_state(terminal_state, agent_card
25402556
25412557@pytest .mark .asyncio
25422558@pytest .mark .parametrize ('terminal_state' , TERMINAL_TASK_STATES )
2543- async def test_on_message_send_stream_task_in_terminal_state (terminal_state , agent_card ):
2559+ async def test_on_message_send_stream_task_in_terminal_state (
2560+ terminal_state , agent_card
2561+ ):
25442562 """Test on_message_send_stream when task is already in a terminal state."""
25452563 state_name = TaskState .Name (terminal_state )
25462564 task_id = f'terminal_stream_task_{ state_name } '
@@ -2583,7 +2601,9 @@ async def test_on_message_send_stream_task_in_terminal_state(terminal_state, age
25832601
25842602@pytest .mark .asyncio
25852603@pytest .mark .parametrize ('terminal_state' , TERMINAL_TASK_STATES )
2586- async def test_on_subscribe_to_task_in_terminal_state (terminal_state , agent_card ):
2604+ async def test_on_subscribe_to_task_in_terminal_state (
2605+ terminal_state , agent_card
2606+ ):
25872607 """Test on_subscribe_to_task when task is in a terminal state."""
25882608 state_name = TaskState .Name (terminal_state )
25892609 task_id = f'resub_terminal_task_{ state_name } '
@@ -2654,7 +2674,9 @@ async def test_on_message_send_task_id_provided_but_task_not_found(agent_card):
26542674
26552675
26562676@pytest .mark .asyncio
2657- async def test_on_message_send_stream_task_id_provided_but_task_not_found (agent_card ):
2677+ async def test_on_message_send_stream_task_id_provided_but_task_not_found (
2678+ agent_card ,
2679+ ):
26582680 """Test on_message_send_stream when task_id is provided but task doesn't exist."""
26592681 task_id = 'nonexistent_stream_task'
26602682 mock_task_store = AsyncMock (spec = TaskStore )
0 commit comments