use new send-jobs-to-dvla task instead of send-files-to-dvla

the tasks (on the ftp app) do the same thing, but to improve clarity
i've renamed it to jobs, because we'll be adding a notifications one
soon
This commit is contained in:
Leo Hemsted
2017-09-12 16:13:07 +01:00
parent ca1856eb20
commit 2c758cbccd
6 changed files with 8 additions and 7 deletions

View File

@@ -690,6 +690,6 @@ def test_run_letter_jobs(client, mocker, sample_letter_template):
run_letter_jobs()
mock_celery.assert_called_once_with(name=TaskNames.DVLA_FILES,
mock_celery.assert_called_once_with(name=TaskNames.DVLA_JOBS,
args=(job_ids,),
queue=QueueNames.PROCESS_FTP)

View File

@@ -25,7 +25,7 @@ def test_send_letter_jobs(client, mocker, sample_letter_template):
assert response.status_code == 201
assert json.loads(response.get_data())['data'] == {'response': "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-jobs-to-dvla",
args=(job_ids['job_ids'],),
queue="process-ftp-tasks")