Skip to content

Commit df3c0e7

Browse files
committed
fix broken test_proto_utils test
1 parent 22d5bbd commit df3c0e7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/utils/test_proto_utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,13 @@ def test_task_id_params_from_proto_invalid_name(self):
237237
assert isinstance(exc_info.value.error, types.InvalidParamsError)
238238

239239
def test_task_push_config_from_proto_invalid_parent(self):
240-
request = a2a_pb2.CreateTaskPushNotificationConfigRequest(
241-
parent='invalid-parent'
240+
request = proto_utils.ToProto.task_push_notification_config(
241+
types.TaskPushNotificationConfig(
242+
task_id='test-task-id',
243+
push_notification_config=types.PushNotificationConfig(
244+
url='test_url'
245+
),
246+
)
242247
)
243248
with pytest.raises(ServerError) as exc_info:
244249
proto_utils.FromProto.task_push_notification_config(request)

0 commit comments

Comments
 (0)