mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
add provider tasks tests
This commit is contained in:
@@ -52,7 +52,9 @@ def test_should_check_delivery_receipts_failure(sample_notification, mocker):
|
||||
"app.celery.provider_tasks.aws_cloudwatch_client.is_localstack",
|
||||
return_value=False,
|
||||
)
|
||||
mock_update = mocker.patch("app.celery.provider_tasks.update_notification_status_by_id")
|
||||
mock_update = mocker.patch(
|
||||
"app.celery.provider_tasks.update_notification_status_by_id"
|
||||
)
|
||||
mocker.patch(
|
||||
"app.celery.provider_tasks.aws_cloudwatch_client.check_sms",
|
||||
return_value=("success", "okay", "AT&T"),
|
||||
@@ -66,6 +68,7 @@ def test_should_check_delivery_receipts_failure(sample_notification, mocker):
|
||||
mock_sanitize.assert_not_called()
|
||||
mock_update.assert_called_once()
|
||||
|
||||
|
||||
def test_should_call_send_sms_to_provider_from_deliver_sms_task(
|
||||
sample_notification, mocker
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user