mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Update send letter jobs to return json
This commit is contained in:
@@ -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'],),
|
||||
|
||||
Reference in New Issue
Block a user