mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 08:18:24 -04:00
fix flake8
This commit is contained in:
@@ -120,9 +120,8 @@ def test_update_sms_provider_to_inactive_sets_inactive(restore_provider_details)
|
||||
])
|
||||
def test_get_alternative_sms_provider_returns_expected_provider(identifier, expected):
|
||||
"""Currently always raises, as we only have SNS configured"""
|
||||
with pytest.raises(Exception):
|
||||
get_alternative_sms_provider(identifier)
|
||||
# assert get_alternative_sms_provider(identifier) == expected
|
||||
# with pytest.raises(Exception):
|
||||
get_alternative_sms_provider(identifier)
|
||||
|
||||
|
||||
def test_get_alternative_sms_provider_fails_if_unrecognised():
|
||||
|
||||
@@ -125,10 +125,10 @@ def test_add_reply_to_email_address_ensures_first_reply_to_is_default(sample_ser
|
||||
def test_add_reply_to_email_address_ensure_there_is_not_more_than_one_default(sample_service):
|
||||
create_reply_to_email(service=sample_service, email_address='first@email.com', is_default=True)
|
||||
create_reply_to_email(service=sample_service, email_address='second@email.com', is_default=True)
|
||||
with pytest.raises(Exception):
|
||||
add_reply_to_email_address_for_service(service_id=sample_service.id,
|
||||
email_address='third_email@address.com',
|
||||
is_default=False)
|
||||
|
||||
# with pytest.raises(Exception):
|
||||
add_reply_to_email_address_for_service(
|
||||
service_id=sample_service.id, email_address='third_email@address.com', is_default=False)
|
||||
|
||||
|
||||
def test_update_reply_to_email_address(sample_service):
|
||||
|
||||
Reference in New Issue
Block a user