mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-22 18:41:54 -05:00
Add 'archived' column to the 3 reply_to models
Added a new boolean column, `archived`, with a default of False to the three models which are used to specify the 'reply to' address for notifications: * ServiceEmailReplyTo * ServiceSmsSender * ServiceLetterContact
This commit is contained in:
@@ -35,6 +35,7 @@ def test_add_reply_to_email_address_for_service_creates_first_email_for_service(
|
||||
assert len(results) == 1
|
||||
assert results[0].email_address == 'new@address.com'
|
||||
assert results[0].is_default
|
||||
assert not results[0].archived
|
||||
|
||||
|
||||
def test_add_reply_to_email_address_for_service_creates_another_email_for_service(notify_db_session):
|
||||
|
||||
@@ -39,9 +39,11 @@ def test_add_letter_contact_for_service_creates_additional_letter_contact_for_se
|
||||
|
||||
assert results[0].contact_block == 'Edinburgh, ED1 1AA'
|
||||
assert results[0].is_default
|
||||
assert not results[0].archived
|
||||
|
||||
assert results[1].contact_block == 'Swansea, SN1 3CC'
|
||||
assert not results[1].is_default
|
||||
assert not results[1].archived
|
||||
|
||||
|
||||
def test_add_another_letter_contact_as_default_overrides_existing(notify_db_session):
|
||||
|
||||
@@ -58,6 +58,7 @@ def test_dao_add_sms_sender_for_service(notify_db_session):
|
||||
assert len(service_sms_senders) == 2
|
||||
assert service_sms_senders[0].sms_sender == 'testing'
|
||||
assert service_sms_senders[0].is_default
|
||||
assert not service_sms_senders[0].archived
|
||||
assert service_sms_senders[1] == new_sms_sender
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user