@@ -418,7 +418,7 @@ async def test_cancel_task(
418418
419419
420420@pytest .mark .asyncio
421- async def test_set_task_callback_with_valid_task (
421+ async def test_create_task_push_notification_config_with_valid_task (
422422 grpc_transport : GrpcTransport ,
423423 mock_grpc_stub : AsyncMock ,
424424 sample_task_push_notification_config : TaskPushNotificationConfig ,
@@ -433,7 +433,9 @@ async def test_set_task_callback_with_valid_task(
433433 task_id = 'task-1' ,
434434 config = sample_task_push_notification_config .push_notification_config ,
435435 )
436- response = await grpc_transport .set_task_callback (request )
436+ response = await grpc_transport .create_task_push_notification_config (
437+ request
438+ )
437439
438440 mock_grpc_stub .CreateTaskPushNotificationConfig .assert_awaited_once_with (
439441 request ,
@@ -448,7 +450,7 @@ async def test_set_task_callback_with_valid_task(
448450
449451
450452@pytest .mark .asyncio
451- async def test_set_task_callback_with_invalid_task (
453+ async def test_create_task_push_notification_config_with_invalid_task (
452454 grpc_transport : GrpcTransport ,
453455 mock_grpc_stub : AsyncMock ,
454456 sample_push_notification_config : PushNotificationConfig ,
@@ -469,12 +471,14 @@ async def test_set_task_callback_with_invalid_task(
469471
470472 # Note: The transport doesn't validate the response name format
471473 # It just returns the response from the stub
472- response = await grpc_transport .set_task_callback (request )
474+ response = await grpc_transport .create_task_push_notification_config (
475+ request
476+ )
473477 assert response .task_id == 'invalid-path-to-task-1'
474478
475479
476480@pytest .mark .asyncio
477- async def test_get_task_callback_with_valid_task (
481+ async def test_get_task_push_notification_config_with_valid_task (
478482 grpc_transport : GrpcTransport ,
479483 mock_grpc_stub : AsyncMock ,
480484 sample_task_push_notification_config : TaskPushNotificationConfig ,
@@ -485,7 +489,7 @@ async def test_get_task_callback_with_valid_task(
485489 )
486490 config_id = sample_task_push_notification_config .push_notification_config .id
487491
488- response = await grpc_transport .get_task_callback (
492+ response = await grpc_transport .get_task_push_notification_config (
489493 GetTaskPushNotificationConfigRequest (
490494 task_id = 'task-1' ,
491495 id = config_id ,
@@ -508,7 +512,7 @@ async def test_get_task_callback_with_valid_task(
508512
509513
510514@pytest .mark .asyncio
511- async def test_get_task_callback_with_invalid_task (
515+ async def test_get_task_push_notification_config_with_invalid_task (
512516 grpc_transport : GrpcTransport ,
513517 mock_grpc_stub : AsyncMock ,
514518 sample_push_notification_config : PushNotificationConfig ,
@@ -521,7 +525,7 @@ async def test_get_task_callback_with_invalid_task(
521525 )
522526 )
523527
524- response = await grpc_transport .get_task_callback (
528+ response = await grpc_transport .get_task_push_notification_config (
525529 GetTaskPushNotificationConfigRequest (
526530 task_id = 'task-1' ,
527531 id = 'config-1' ,
@@ -532,7 +536,7 @@ async def test_get_task_callback_with_invalid_task(
532536
533537
534538@pytest .mark .asyncio
535- async def test_list_task_callback (
539+ async def test_list_task_push_notification_configs (
536540 grpc_transport : GrpcTransport ,
537541 mock_grpc_stub : AsyncMock ,
538542 sample_task_push_notification_config : TaskPushNotificationConfig ,
@@ -544,7 +548,7 @@ async def test_list_task_callback(
544548 )
545549 )
546550
547- response = await grpc_transport .list_task_callback (
551+ response = await grpc_transport .list_task_push_notification_configs (
548552 ListTaskPushNotificationConfigsRequest (task_id = 'task-1' )
549553 )
550554
@@ -562,15 +566,15 @@ async def test_list_task_callback(
562566
563567
564568@pytest .mark .asyncio
565- async def test_delete_task_callback (
569+ async def test_delete_task_push_notification_config (
566570 grpc_transport : GrpcTransport ,
567571 mock_grpc_stub : AsyncMock ,
568572 sample_task_push_notification_config : TaskPushNotificationConfig ,
569573) -> None :
570574 """Test deleting task push notification config."""
571575 mock_grpc_stub .DeleteTaskPushNotificationConfig .return_value = None
572576
573- await grpc_transport .delete_task_callback (
577+ await grpc_transport .delete_task_push_notification_config (
574578 DeleteTaskPushNotificationConfigRequest (
575579 task_id = 'task-1' ,
576580 id = 'config-1' ,
0 commit comments