mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Merge pull request #1617 from alphagov/ken-set-page-count-0-fake-dvla-response
Update the dvla response data to 0 page count
This commit is contained in:
@@ -122,7 +122,7 @@ def firetext_callback(notification_id, to):
|
|||||||
@notify_celery.task(bind=True, name="create-fake-letter-response-file", max_retries=5, default_retry_delay=300)
|
@notify_celery.task(bind=True, name="create-fake-letter-response-file", max_retries=5, default_retry_delay=300)
|
||||||
def create_fake_letter_response_file(self, reference):
|
def create_fake_letter_response_file(self, reference):
|
||||||
now = datetime.utcnow()
|
now = datetime.utcnow()
|
||||||
dvla_response_data = '{}|Sent|1|Sorted'.format(reference)
|
dvla_response_data = '{}|Sent|0|Sorted'.format(reference)
|
||||||
upload_file_name = 'NOTIFY.{}.RSP.TXT'.format(now.strftime('%Y%m%d%H%M%S'))
|
upload_file_name = 'NOTIFY.{}.RSP.TXT'.format(now.strftime('%Y%m%d%H%M%S'))
|
||||||
|
|
||||||
s3upload(
|
s3upload(
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ def test_create_fake_letter_response_file_uploads_response_file_s3(
|
|||||||
create_fake_letter_response_file('random-ref')
|
create_fake_letter_response_file('random-ref')
|
||||||
|
|
||||||
mock_s3upload.assert_called_once_with(
|
mock_s3upload.assert_called_once_with(
|
||||||
filedata='random-ref|Sent|1|Sorted',
|
filedata='random-ref|Sent|0|Sorted',
|
||||||
region=current_app.config['AWS_REGION'],
|
region=current_app.config['AWS_REGION'],
|
||||||
bucket_name=current_app.config['DVLA_RESPONSE_BUCKET_NAME'],
|
bucket_name=current_app.config['DVLA_RESPONSE_BUCKET_NAME'],
|
||||||
file_location=filename
|
file_location=filename
|
||||||
|
|||||||
Reference in New Issue
Block a user