mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Update test for 201 response from send_letter_jobs
This commit is contained in:
@@ -16,7 +16,7 @@ def test_send_letter_jobs(client, mocker):
|
|||||||
data=json.dumps(job_ids),
|
data=json.dumps(job_ids),
|
||||||
headers=[('Content-Type', 'application/json'), auth_header])
|
headers=[('Content-Type', 'application/json'), auth_header])
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 201
|
||||||
assert json.loads(response.get_data())['data'] == {'response': "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",
|
mock_celery.assert_called_once_with(name="send-files-to-dvla",
|
||||||
|
|||||||
Reference in New Issue
Block a user