@@ -95,7 +95,7 @@ def test_describe_processes(config, api_):
9595 assert process ['title' ] == 'Hello World'
9696 assert len (process ['keywords' ]) == 3
9797 assert len (process ['links' ]) == 6
98- assert len (process ['inputs' ]) == 2
98+ assert len (process ['inputs' ]) == 3
9999 assert len (process ['outputs' ]) == 1
100100 assert len (process ['outputTransmission' ]) == 1
101101 assert len (process ['jobControlOptions' ]) == 2
@@ -242,6 +242,12 @@ def test_execute_process(config, api_):
242242 'name' : 'Test document'
243243 }
244244 }
245+ req_body_10 = {
246+ 'inputs' : {
247+ 'name' : 'Test document as bytes response' ,
248+ 'as_bytes' : True
249+ }
250+ }
245251
246252 cleanup_jobs = set ()
247253
@@ -410,6 +416,12 @@ def test_execute_process(config, api_):
410416 response2 = '{"id":"echo","value":"Hello Test document!"}'
411417 assert response == response2
412418
419+ req = mock_api_request (data = req_body_10 )
420+ rsp_headers , code , response = execute_process (api_ , req , 'hello-world' )
421+
422+ response2 = '{"id":"echo","value":"Hello Test document as bytes response!"}' # noqa
423+ assert response == response2
424+
413425 # Cleanup
414426 time .sleep (2 ) # Allow time for any outstanding async jobs
415427 for _ , job_id in cleanup_jobs :
0 commit comments