mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Upper case the filename to meet requirements
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user