mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 12:38:26 -04:00
fix tests
This commit is contained in:
@@ -907,7 +907,7 @@ def test_send_sms_to_provider_should_use_normalised_to(mocker, client, sample_te
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_send_email_to_provider_should_user_normalised_to(
|
def test_send_email_to_provider_should_use_normalised_to(
|
||||||
mocker, client, sample_email_template
|
mocker, client, sample_email_template
|
||||||
):
|
):
|
||||||
mock_boto_client = mocker.patch("boto3.client")
|
mock_boto_client = mocker.patch("boto3.client")
|
||||||
@@ -935,7 +935,7 @@ def test_send_email_to_provider_should_user_normalised_to(
|
|||||||
mock_redis.get.side_effect = [email, personalisation]
|
mock_redis.get.side_effect = [email, personalisation]
|
||||||
|
|
||||||
send_to_providers.send_email_to_provider(notification)
|
send_to_providers.send_email_to_provider(notification)
|
||||||
mock_ses.assert_called_once_with(
|
mock_ses.send_email.assert_called_once_with(
|
||||||
ANY,
|
ANY,
|
||||||
"test@example.com",
|
"test@example.com",
|
||||||
ANY,
|
ANY,
|
||||||
@@ -1057,7 +1057,7 @@ def test_send_email_to_provider_should_return_template_if_found_in_redis(
|
|||||||
send_to_providers.send_email_to_provider(notification)
|
send_to_providers.send_email_to_provider(notification)
|
||||||
assert mock_get_template.called is False
|
assert mock_get_template.called is False
|
||||||
assert mock_get_service.called is False
|
assert mock_get_service.called is False
|
||||||
mock_ses.assert_called_once_with(
|
mock_ses.send_email.assert_called_once_with(
|
||||||
ANY,
|
ANY,
|
||||||
"test@example.com",
|
"test@example.com",
|
||||||
ANY,
|
ANY,
|
||||||
|
|||||||
Reference in New Issue
Block a user