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

Function test_empty_stdio

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

Source from the content-addressed store, hash-verified

77
78
79def test_empty_stdio(hq_env: HqEnv):
80 (job, client) = prepare_job_client(hq_env)
81
82 def foo():
83 print("Hello")
84 print("Hello", file=sys.stderr)
85
86 job.function(
87 foo,
88 stdout=None,
89 stderr=None,
90 )
91 submitted_job = client.submit(job)
92 wait_for_job_state(hq_env, submitted_job.id, "FINISHED")
93 assert not os.path.isfile("0.stdout")
94 assert not os.path.isfile("0.stderr")
95
96
97def test_stdio_rm_if_finished(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 4

prepare_job_clientFunction · 0.85
wait_for_job_stateFunction · 0.85
functionMethod · 0.80
submitMethod · 0.45

Tested by

no test coverage detected