move from dao_toggle_sms_provider to dao_reduce_sms_provider_priority

This commit is contained in:
Leo Hemsted
2019-11-11 16:14:14 +00:00
parent 52a33f220b
commit 3c63ccb159
4 changed files with 8 additions and 7 deletions

View File

@@ -553,7 +553,7 @@ def test_should_set_notification_billable_units_if_sending_to_provider_fails(
mocker,
):
mocker.patch('app.mmg_client.send_sms', side_effect=Exception())
mock_toggle_provider = mocker.patch('app.delivery.send_to_providers.dao_toggle_sms_provider')
mocker.patch('app.delivery.send_to_providers.dao_reduce_sms_provider_priority')
sample_notification.billable_units = 0
assert sample_notification.sent_by is None
@@ -562,7 +562,6 @@ def test_should_set_notification_billable_units_if_sending_to_provider_fails(
send_to_providers.send_sms_to_provider(sample_notification)
assert sample_notification.billable_units == 1
assert mock_toggle_provider.called
def test_should_send_sms_to_international_providers(