We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d5bbd commit df3c0e7Copy full SHA for df3c0e7
tests/utils/test_proto_utils.py
@@ -237,8 +237,13 @@ def test_task_id_params_from_proto_invalid_name(self):
237
assert isinstance(exc_info.value.error, types.InvalidParamsError)
238
239
def test_task_push_config_from_proto_invalid_parent(self):
240
- request = a2a_pb2.CreateTaskPushNotificationConfigRequest(
241
- parent='invalid-parent'
+ request = proto_utils.ToProto.task_push_notification_config(
+ types.TaskPushNotificationConfig(
242
+ task_id='test-task-id',
243
+ push_notification_config=types.PushNotificationConfig(
244
+ url='test_url'
245
+ ),
246
+ )
247
)
248
with pytest.raises(ServerError) as exc_info:
249
proto_utils.FromProto.task_push_notification_config(request)
0 commit comments