Skip to content

Commit 4ad97b7

Browse files
committed
Fixes after merge
1 parent 7f21610 commit 4ad97b7

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tests/server/test_integration.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,18 +418,16 @@ def test_set_push_notification_config(
418418
'method': 'CreateTaskPushNotificationConfig',
419419
'params': {
420420
'task_id': 't2',
421-
'config': {
422-
'url': 'https://example.com',
423-
'token': 'secret-token',
424-
},
421+
'url': 'https://example.com',
422+
'token': 'secret-token',
425423
},
426424
},
427425
)
428426

429427
# Verify response
430428
assert response.status_code == 200
431429
data = response.json()
432-
assert data['result']['pushNotificationConfig']['token'] == 'secret-token'
430+
assert data['result']['token'] == 'secret-token'
433431

434432
# Verify handler was called
435433
handler.on_create_task_push_notification_config.assert_awaited_once()
@@ -463,7 +461,7 @@ def test_get_push_notification_config(
463461
# Verify response
464462
assert response.status_code == 200
465463
data = response.json()
466-
assert data['result']['pushNotificationConfig']['token'] == 'secret-token'
464+
assert data['result']['token'] == 'secret-token'
467465

468466
# Verify handler was called
469467
handler.on_get_task_push_notification_config.assert_awaited_once()

0 commit comments

Comments
 (0)