mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 08:40:29 -04:00
Remove bucket-name from the task.
This commit is contained in:
@@ -14,7 +14,6 @@ register_errors(letter_job)
|
|||||||
@letter_job.route('/send-letter-jobs', methods=['POST'])
|
@letter_job.route('/send-letter-jobs', methods=['POST'])
|
||||||
def send_letter_jobs():
|
def send_letter_jobs():
|
||||||
job_ids = validate(request.get_json(), letter_job_ids)
|
job_ids = validate(request.get_json(), letter_job_ids)
|
||||||
notify_celery.send_task(name="send_files_to_dvla", args=(current_app.config.get("DVLA_UPLOAD_BUCKET_NAME"),
|
notify_celery.send_task(name="send_files_to_dvla", args=(job_ids['job_ids'],), queue="process-ftp")
|
||||||
job_ids['job_ids'],), queue="process-ftp")
|
|
||||||
|
|
||||||
return "Task created to send files to DVLA"
|
return "Task created to send files to DVLA"
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ def test_send_letter_jobs(client, mocker):
|
|||||||
assert response.get_data(as_text=True) == "Task created to send files to DVLA"
|
assert response.get_data(as_text=True) == "Task created to send files to DVLA"
|
||||||
|
|
||||||
mock_celery.assert_called_once_with(name="send_files_to_dvla",
|
mock_celery.assert_called_once_with(name="send_files_to_dvla",
|
||||||
args=(current_app.config.get("DVLA_UPLOAD_BUCKET_NAME"),
|
args=(job_ids['job_ids'],),
|
||||||
job_ids['job_ids'],),
|
|
||||||
queue="process-ftp")
|
queue="process-ftp")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user