diff --git a/tests/api/test_processes.py b/tests/api/test_processes.py index 1947e7962..9bfbe2c90 100644 --- a/tests/api/test_processes.py +++ b/tests/api/test_processes.py @@ -506,16 +506,17 @@ def test_get_job_result(api_): assert code == HTTPStatus.NOT_FOUND job_id = _execute_a_job(api_) - rsp_headers, code, response = get_job_result(api_, mock_api_request(), - job_id) - # default response is html + rsp_headers, code, response = get_job_result( + api_, mock_api_request({'f': 'html'}), job_id) + assert code == HTTPStatus.OK assert rsp_headers['Content-Type'] == 'text/html' result = 'JSON.stringify({"id":"echo","value":"Hello Sync Test!"}' assert result in response + # default response is json rsp_headers, code, response = get_job_result( - api_, mock_api_request({'f': 'json'}), job_id, + api_, mock_api_request(), job_id ) assert code == HTTPStatus.OK assert rsp_headers['Content-Type'] == 'application/json'