Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Jul 31, 2024
1 parent e244278 commit 635c170
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/app/delivery/test_send_to_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def test_should_send_sms_with_downgraded_content(notify_db_session, mocker):
template=template,
)
db_notification.personalisation = {"misc": placeholder}
db_notification.reply_to_text = 'testing'

mocker.patch("app.aws_sns_client.send_sms")

Expand Down Expand Up @@ -621,6 +622,7 @@ def test_should_update_billable_units_and_status_according_to_research_mode_and_
billable_units=0,
status=NotificationStatus.CREATED,
key_type=key_type,
reply_to_text='testing',
)
mocker.patch("app.aws_sns_client.send_sms")
mocker.patch(
Expand Down Expand Up @@ -784,7 +786,7 @@ def test_send_sms_to_provider_should_use_normalised_to(mocker, client, sample_te
)
send_mock = mocker.patch("app.aws_sns_client.send_sms")
notification = create_notification(
template=sample_template, to_field="+12028675309", normalised_to="2028675309"
template=sample_template, to_field="+12028675309", normalised_to="2028675309", reply_to_text='testing'
)

mock_s3 = mocker.patch("app.delivery.send_to_providers.get_phone_number_from_s3")
Expand Down Expand Up @@ -860,7 +862,7 @@ def test_send_sms_to_provider_should_return_template_if_found_in_redis(

send_mock = mocker.patch("app.aws_sns_client.send_sms")
notification = create_notification(
template=sample_template, to_field="+447700900855", normalised_to="447700900855"
template=sample_template, to_field="+447700900855", normalised_to="447700900855", reply_to_text='testing'
)

mock_s3 = mocker.patch("app.delivery.send_to_providers.get_phone_number_from_s3")
Expand Down

0 comments on commit 635c170

Please sign in to comment.