Upper case the filename to meet requirements

This commit is contained in:
Ken Tsang
2017-12-05 16:03:08 +00:00
parent 30d66c3d62
commit 7b390e74c4
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ def upload_letters_pdf(reference, crown, filedata):
colour="C", colour="C",
crown="C" if crown else "N", crown="C" if crown else "N",
date=now.strftime('%Y%m%d%H%M%S') date=now.strftime('%Y%m%d%H%M%S')
) ).upper()
utils_s3upload( utils_s3upload(
filedata=filedata, filedata=filedata,

View File

@@ -157,5 +157,5 @@ def test_upload_letters_pdf_calls_utils_s3upload_with_correct_args(
filedata='some_data', filedata='some_data',
region='eu-west-1', region='eu-west-1',
bucket_name='test-letters-pdf', bucket_name='test-letters-pdf',
file_location='2017-12-04/NOTIFY.foo.D.2.C.{}.20171204150000.pdf'.format(expected_crown_text) file_location='2017-12-04/NOTIFY.FOO.D.2.C.{}.20171204150000.PDF'.format(expected_crown_text)
) )