(hq_env: HqEnv)
| 14 | |
| 15 | |
| 16 | def test_submit_pyfunction(hq_env: HqEnv): |
| 17 | (job, client) = prepare_job_client(hq_env) |
| 18 | |
| 19 | def body(a, b, c): |
| 20 | print(f"stdout {a} {b} {c}") |
| 21 | |
| 22 | job.function(body, args=(1, 2), kwargs={"c": 3}, stdout="out", stderr="err") |
| 23 | submitted_job = client.submit(job) |
| 24 | wait_for_job_state(hq_env, submitted_job.id, "FINISHED") |
| 25 | |
| 26 | check_file_contents("out", "stdout 1 2 3\n") |
| 27 | |
| 28 | |
| 29 | def test_submit_python_prologue(hq_env: HqEnv): |
nothing calls this directly
no test coverage detected