Pass original file name when sending contact list

Otherwise the new file doesn’t get a name, which is very confusing.
This commit is contained in:
Chris Hill-Scott
2020-03-16 11:25:07 +00:00
parent b99216173e
commit 93f862621c
3 changed files with 13 additions and 8 deletions

View File

@@ -3988,6 +3988,7 @@ def test_send_from_contact_list(
mocker,
client_request,
fake_uuid,
mock_get_contact_lists,
):
new_uuid = uuid.uuid4()
mock_download = mocker.patch('app.models.contact_list.s3download', return_value='contents')
@@ -4007,6 +4008,7 @@ def test_send_from_contact_list(
service_id=SERVICE_ONE_ID,
template_id=fake_uuid,
upload_id=new_uuid,
original_file_name='EmergencyContactList.xls',
_external=True,
)
)