Return sorted ACK files

- also fixes unit test failure due to random order of filenames
This commit is contained in:
Ken Tsang
2018-01-24 15:57:24 +00:00
parent edd030e5dd
commit 04beff7d05
2 changed files with 2 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ def letter_raise_alert_if_no_ack_file_for_zip():
deskpro_message = "Letter ack file does not contains all zip files sent. " \
"Missing ack for zip files: {}, " \
"pdf bucket: {}, subfolder: {}, " \
"ack bucket: {}".format(str(zip_file_set - ack_content_set),
"ack bucket: {}".format(str(sorted(zip_file_set - ack_content_set)),
current_app.config['LETTERS_PDF_BUCKET_NAME'],
datetime.utcnow().strftime('%Y-%m-%d') + '/zips_sent',
current_app.config['DVLA_RESPONSE_BUCKET_NAME'])