mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Clarify no callbacks are sent in timeout test
This now complements the test below it, which we will refactor to be consistent in the next commit.
This commit is contained in:
@@ -166,7 +166,8 @@ def test_delete_letter_notifications_older_than_retention_calls_child_task(notif
|
||||
mocked.assert_called_once_with('letter')
|
||||
|
||||
|
||||
def test_timeout_notifications(mocker, notify_api, sample_notification):
|
||||
def test_timeout_notifications_no_callbacks(mocker, sample_notification):
|
||||
mock_update = mocker.patch('app.celery.service_callback_tasks.send_delivery_status_to_service.apply_async')
|
||||
mock_dao = mocker.patch('app.celery.nightly_tasks.dao_timeout_notifications')
|
||||
mock_dao.return_value = [sample_notification]
|
||||
|
||||
@@ -176,6 +177,7 @@ def test_timeout_notifications(mocker, notify_api, sample_notification):
|
||||
current_app.config.get('SENDING_NOTIFICATIONS_TIMEOUT_PERIOD')
|
||||
)
|
||||
|
||||
mock_update.assert_not_called()
|
||||
|
||||
def test_timeout_notifications_sends_status_update_to_service(client, sample_template, mocker):
|
||||
callback_api = create_service_callback_api(service=sample_template.service)
|
||||
|
||||
Reference in New Issue
Block a user