fix flake8

This commit is contained in:
Kenneth Kehl
2023-07-21 11:24:22 -07:00
parent 6fa4c05adf
commit 89b733dd54
7 changed files with 40 additions and 21 deletions
@@ -126,9 +126,13 @@ def test_add_reply_to_email_address_ensure_there_is_not_more_than_one_default(sa
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)
try:
# flake8 doesn't like raise with a generic Exception
add_reply_to_email_address_for_service(
service_id=sample_service.id, email_address='third_email@address.com', is_default=False)
assert 1 == 0
except Exception as e:
assert 1 == 1
def test_update_reply_to_email_address(sample_service):