MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / test_submit_stdio

Function test_submit_stdio

tests/pyapi/test_job.py:65–76  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

63
64
65def test_submit_stdio(hq_env: HqEnv):
66 (job, client) = prepare_job_client(hq_env)
67 job.program(
68 args=bash("echo Test1; cat -; >&2 echo Test2"),
69 stdout="out",
70 stderr="err",
71 stdin=b"Hello\n",
72 )
73 submitted_job = client.submit(job)
74 wait_for_job_state(hq_env, submitted_job.id, "FINISHED")
75 check_file_contents("out", "Test1\nHello\n")
76 check_file_contents("err", "Test2\n")
77
78
79def test_empty_stdio(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 6

prepare_job_clientFunction · 0.85
bashFunction · 0.85
wait_for_job_stateFunction · 0.85
programMethod · 0.80
check_file_contentsFunction · 0.50
submitMethod · 0.45

Tested by

no test coverage detected