mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
fix flake8
This commit is contained in:
@@ -71,9 +71,10 @@ def test_provider_to_use_raises_if_no_active_providers(mocker, restore_provider_
|
||||
try:
|
||||
send_to_providers.provider_to_use('sms')
|
||||
assert 1 == 0
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
assert 1 == 1
|
||||
|
||||
|
||||
def test_should_send_personalised_template_to_correct_sms_provider_and_persist(
|
||||
sample_sms_template_with_html,
|
||||
mocker
|
||||
@@ -528,7 +529,7 @@ def test_should_not_update_notification_if_research_mode_on_exception(
|
||||
try:
|
||||
send_to_providers.send_sms_to_provider(sample_notification)
|
||||
assert 1 == 0
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
assert 1 == 1
|
||||
|
||||
persisted_notification = notifications_dao.get_notification_by_id(sample_notification.id)
|
||||
@@ -603,7 +604,7 @@ def test_should_set_notification_billable_units_and_reduces_provider_priority_if
|
||||
try:
|
||||
send_to_providers.send_sms_to_provider(sample_notification)
|
||||
assert 1 == 0
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
assert 1 == 1
|
||||
|
||||
assert sample_notification.billable_units == 1
|
||||
|
||||
Reference in New Issue
Block a user