diff --git a/tests/app/celery/test_tasks.py b/tests/app/celery/test_tasks.py index d4081fc97..12c15d334 100644 --- a/tests/app/celery/test_tasks.py +++ b/tests/app/celery/test_tasks.py @@ -707,7 +707,7 @@ def test_save_email_should_use_template_version_from_job_not_latest( assert not persisted_notification.sent_by assert persisted_notification.notification_type == NotificationType.EMAIL provider_tasks.deliver_email.apply_async.assert_called_once_with( - [str(persisted_notification.id)], queue="send-email-tasks", countdown=30 + [str(persisted_notification.id)], queue="send-email-tasks" ) diff --git a/tests/app/service/send_notification/test_send_notification.py b/tests/app/service/send_notification/test_send_notification.py index 831803934..0ec50428e 100644 --- a/tests/app/service/send_notification/test_send_notification.py +++ b/tests/app/service/send_notification/test_send_notification.py @@ -476,7 +476,7 @@ def test_should_allow_valid_email_notification( response_data = json.loads(response.get_data(as_text=True))["data"] notification_id = response_data["notification"]["id"] app.celery.provider_tasks.deliver_email.apply_async.assert_called_once_with( - [notification_id], queue="send-email-tasks" + [notification_id], queue="send-email-tasks", countdown=30 ) assert response.status_code == 201 @@ -620,7 +620,7 @@ def test_should_send_email_if_team_api_key_and_a_service_user( ) app.celery.provider_tasks.deliver_email.apply_async.assert_called_once_with( - [fake_uuid], queue="send-email-tasks" + [fake_uuid], queue="send-email-tasks", countdown=30 ) assert response.status_code == 201 @@ -697,7 +697,7 @@ def test_should_send_email_to_anyone_with_test_key( ) app.celery.provider_tasks.deliver_email.apply_async.assert_called_once_with( - [fake_uuid], queue="send-email-tasks" + [fake_uuid], queue="send-email-tasks", countdown=30 ) assert response.status_code == 201