mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
If template has a default address use that address ELSE the address is blank.
This commit is contained in:
@@ -330,8 +330,8 @@ def test_post_letter_notification_persists_notification_reply_to_text(
|
||||
):
|
||||
service = create_service(service_permissions=[LETTER_TYPE])
|
||||
service_address = "12 Main Street, London"
|
||||
create_letter_contact(service=service, contact_block=service_address, is_default=True)
|
||||
template = create_template(service=service, template_type='letter')
|
||||
letter_contact = create_letter_contact(service=service, contact_block=service_address, is_default=True)
|
||||
template = create_template(service=service, template_type='letter', reply_to=letter_contact.id)
|
||||
data = {
|
||||
"template_id": template.id,
|
||||
"personalisation": {'address_line_1': 'Foo', 'address_line_2': 'Bar', 'postcode': 'Baz'}
|
||||
|
||||
Reference in New Issue
Block a user