mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
move from dao_toggle_sms_provider to dao_reduce_sms_provider_priority
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user