Add a task for the FTP app to call that will update the job to sent to dvla and all the notifications for that job as sending.

This commit is contained in:
Rebecca Law
2017-04-06 17:16:08 +01:00
parent 895b5d13dd
commit add0cfa62f
5 changed files with 55 additions and 18 deletions

View File

@@ -673,7 +673,8 @@ def test_get_jobs_accepts_page_parameter(
@pytest.mark.parametrize('statuses_filter, expected_statuses', [
('', JOB_STATUS_TYPES),
('pending', [JOB_STATUS_PENDING]),
('pending, in progress, finished, sending limits exceeded, scheduled, cancelled', JOB_STATUS_TYPES),
('pending, in progress, finished, sending limits exceeded, scheduled, cancelled, ready to send, sent to dvla',
JOB_STATUS_TYPES),
# bad statuses are accepted, just return no data
('foo', [])
])
@@ -691,6 +692,8 @@ def test_get_jobs_can_filter_on_statuses(
create_job(notify_db, notify_db_session, job_status='sending limits exceeded')
create_job(notify_db, notify_db_session, job_status='scheduled')
create_job(notify_db, notify_db_session, job_status='cancelled')
create_job(notify_db, notify_db_session, job_status='ready to send')
create_job(notify_db, notify_db_session, job_status='sent to dvla')
path = '/service/{}/job'.format(sample_service.id)
response = client.get(