Combine two tests into one

This commit is contained in:
Katie Smith
2019-05-08 11:39:01 +01:00
parent c809bf2207
commit ce24b13654
2 changed files with 2 additions and 13 deletions

View File

@@ -569,7 +569,7 @@ def test_should_set_notification_billable_units_and_provider_if_sending_to_provi
mocker,
):
mocker.patch('app.mmg_client.send_sms', side_effect=Exception())
mocker.patch('app.delivery.send_to_providers.dao_toggle_sms_provider')
mock_toggle_provider = mocker.patch('app.delivery.send_to_providers.dao_toggle_sms_provider')
sample_notification.billable_units = 0
assert sample_notification.sent_by is None
@@ -579,6 +579,7 @@ def test_should_set_notification_billable_units_and_provider_if_sending_to_provi
assert sample_notification.billable_units == 1
assert sample_notification.sent_by == 'mmg'
assert mock_toggle_provider.called
def test_should_send_sms_to_international_providers(