Skip to content

Commit 9da9e15

Browse files
committed
test: improve coverage
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
1 parent 4b39e50 commit 9da9e15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/client/test_grpc_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def mock_grpc_stub() -> AsyncMock:
3939
stub.SendStreamingMessage = AsyncMock()
4040
stub.GetTask = AsyncMock()
4141
stub.CancelTask = AsyncMock()
42-
stub.CreateTaskPushNotification = AsyncMock()
42+
stub.CreateTaskPushNotificationConfig = AsyncMock()
4343
stub.GetTaskPushNotification = AsyncMock()
4444
return stub
4545

@@ -166,8 +166,8 @@ def sample_task_push_notification_config(
166166
) -> TaskPushNotificationConfig:
167167
"""Provides a sample TaskPushNotificationConfig object."""
168168
return TaskPushNotificationConfig(
169-
name='task-push-notification-config-name-1',
170-
push_notification_config=sample_push_notification_config,
169+
taskId='task-1',
170+
pushNotificationConfig=sample_push_notification_config,
171171
)
172172

173173

0 commit comments

Comments
 (0)