From 5cd0507e99d8f78597d225266ec09f6588308396 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Thu, 30 Mar 2017 10:46:15 +0100 Subject: [PATCH] Revert "Fixed faoiling jenkins tests. Mocked the required functions" This reverts commit 4b60c8dadaa413581cd373c9059ff95ecf751159. --- 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 1e4375ea6..3acd5cf5d 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.tasks.send_sms.apply_async') + mocker.patch('app.celery.provider_tasks.deliver_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.tasks.send_email.apply_async') + mocker.patch('app.celery.provider_tasks.deliver_email.apply_async') mocker.patch('app.encryption.encrypt', return_value="something_encrypted") response_json = return_json_from_response(_post_notification(