Update send letter jobs to return json

This commit is contained in:
Ken Tsang
2017-04-11 15:39:34 +01:00
parent 1e510487e2
commit 155e173363
2 changed files with 7 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ def test_send_letter_jobs(client, mocker):
headers=[('Content-Type', 'application/json'), auth_header])
assert response.status_code == 200
assert response.get_data(as_text=True) == "Task created to send files to DVLA"
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",
args=(job_ids['job_ids'],),