Fix code style

This commit is contained in:
Rebecca Law
2017-10-18 13:17:52 +01:00
parent 4ca6fbc724
commit 4ac2dc3606
2 changed files with 1 additions and 3 deletions

View File

@@ -107,5 +107,3 @@ def _raise_when_no_default(old_default):
# check that the update is not updating the only default to false
if not old_default:
raise Exception("You must have at least one letter contact as the default.", 400)

View File

@@ -101,7 +101,7 @@ def test_dao_add_sms_sender_for_service_switches_default(notify_db_session):
def test_dao_update_service_sms_sender(notify_db_session):
service = create_service(sms_sender='first_sms')
service_sms_senders = ServiceSmsSender.query.filter_by(service_id =service.id).all()
service_sms_senders = ServiceSmsSender.query.filter_by(service_id=service.id).all()
assert len(service_sms_senders) == 1
sms_sender_to_update = service_sms_senders[0]