diff --git a/tests/app/public_contracts/test_POST_notification.py b/tests/app/public_contracts/test_POST_notification.py index 3acd5cf5d..1e4375ea6 100644 --- a/tests/app/public_contracts/test_POST_notification.py +++ b/tests/app/public_contracts/test_POST_notification.py @@ -20,7 +20,7 @@ def _post_notification(client, template, url, to): def test_post_sms_contract(client, mocker, sample_template): - mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async') + mocker.patch('app.celery.tasks.send_sms.apply_async') mocker.patch('app.encryption.encrypt', return_value="something_encrypted") response_json = return_json_from_response(_post_notification( @@ -30,7 +30,7 @@ def test_post_sms_contract(client, mocker, sample_template): def test_post_email_contract(client, mocker, sample_email_template): - mocker.patch('app.celery.provider_tasks.deliver_email.apply_async') + mocker.patch('app.celery.tasks.send_email.apply_async') mocker.patch('app.encryption.encrypt', return_value="something_encrypted") response_json = return_json_from_response(_post_notification(