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

Function test_submit_env

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

Source from the content-addressed store, hash-verified

51
52
53def test_submit_env(hq_env: HqEnv):
54 (job, client) = prepare_job_client(hq_env)
55 job.program(
56 args=bash("echo $FOO > out.txt; echo $BAZ >> out.txt"),
57 env={"FOO": "BAR", "BAZ": "123"},
58 )
59 submitted_job = client.submit(job)
60
61 wait_for_job_state(hq_env, submitted_job.id, "FINISHED")
62 check_file_contents("out.txt", "BAR\n123\n")
63
64
65def test_submit_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