From 4b60c8dadaa413581cd373c9059ff95ecf751159 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Thu, 23 Mar 2017 15:05:56 +0000 Subject: [PATCH] Fixed faoiling jenkins tests. Mocked the required functions --- tests/app/public_contracts/test_POST_notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(