mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Fixed faoiling jenkins tests. Mocked the required functions
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user