From 20ccdab3bdeb1b5a8bcd034783a333dd094120be Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 28 Sep 2016 15:28:45 +0100 Subject: [PATCH] Contract tests mock the new deliver_email|sms tasks --- 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 734a4cefe..fe2468191 100644 --- a/tests/app/public_contracts/test_POST_notification.py +++ b/tests/app/public_contracts/test_POST_notification.py @@ -5,7 +5,7 @@ from tests import create_authorization_header def test_post_sms_contract(client, mocker, sample_template): - mocker.patch('app.celery.tasks.send_sms_to_provider.apply_async') + mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async') mocker.patch('app.encryption.encrypt', return_value="something_encrypted") data = { @@ -25,7 +25,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_to_provider.apply_async') + mocker.patch('app.celery.provider_tasks.deliver_email.apply_async') mocker.patch('app.encryption.encrypt', return_value="something_encrypted") data = {