|
30 | 30 | InternalError, |
31 | 31 | InvalidParamsError, |
32 | 32 | TaskNotFoundError, |
33 | | - UnsupportedOperationError, |
| 33 | + PushNotificationNotSupportedError, |
34 | 34 | ) |
35 | 35 | from a2a.types.a2a_pb2 import ( |
36 | 36 | AgentCapabilities, |
@@ -354,7 +354,7 @@ async def test_set_task_push_notification_config_no_notifier(): |
354 | 354 | params = TaskPushNotificationConfig( |
355 | 355 | task_id='task1', url='http://example.com' |
356 | 356 | ) |
357 | | - with pytest.raises(UnsupportedOperationError): |
| 357 | + with pytest.raises(PushNotificationNotSupportedError): |
358 | 358 | await request_handler.on_create_task_push_notification_config( |
359 | 359 | params, create_server_call_context() |
360 | 360 | ) |
@@ -398,7 +398,7 @@ async def test_get_task_push_notification_config_no_store(): |
398 | 398 | params = GetTaskPushNotificationConfigRequest( |
399 | 399 | task_id='task1', id='task_push_notification_config' |
400 | 400 | ) |
401 | | - with pytest.raises(UnsupportedOperationError): |
| 401 | + with pytest.raises(PushNotificationNotSupportedError): |
402 | 402 | await request_handler.on_get_task_push_notification_config( |
403 | 403 | params, create_server_call_context() |
404 | 404 | ) |
@@ -583,7 +583,7 @@ async def test_list_task_push_notification_config_no_store(): |
583 | 583 | agent_card=create_default_agent_card(), |
584 | 584 | ) |
585 | 585 | params = ListTaskPushNotificationConfigsRequest(task_id='task1') |
586 | | - with pytest.raises(UnsupportedOperationError): |
| 586 | + with pytest.raises(PushNotificationNotSupportedError): |
587 | 587 | await request_handler.on_list_task_push_notification_configs( |
588 | 588 | params, create_server_call_context() |
589 | 589 | ) |
@@ -711,11 +711,11 @@ async def test_delete_task_push_notification_config_no_store(): |
711 | 711 | params = DeleteTaskPushNotificationConfigRequest( |
712 | 712 | task_id='task1', id='config1' |
713 | 713 | ) |
714 | | - with pytest.raises(UnsupportedOperationError) as exc_info: |
| 714 | + with pytest.raises(PushNotificationNotSupportedError) as exc_info: |
715 | 715 | await request_handler.on_delete_task_push_notification_config( |
716 | 716 | params, create_server_call_context() |
717 | 717 | ) |
718 | | - assert isinstance(exc_info.value, UnsupportedOperationError) |
| 718 | + assert isinstance(exc_info.value, PushNotificationNotSupportedError) |
719 | 719 |
|
720 | 720 |
|
721 | 721 | @pytest.mark.asyncio |
|
0 commit comments