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

Function test_job_submit_program_not_found

tests/test_job.py:843–854  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

841
842
843def test_job_submit_program_not_found(hq_env: HqEnv):
844 hq_env.start_server()
845 hq_env.start_worker()
846
847 hq_env.command(["submit", "foo", "--bar", "--baz=5"])
848 wait_for_job_state(hq_env, 1, "FAILED")
849
850 table = hq_env.command(["task", "list", "1", "-v"], as_table=True)
851 assert (
852 'Cannot execute "foo --bar --baz=5": No such file or directory (os error 2)\n'
853 "The program that you have tried to execute (`foo`) was not found." == table.get_column_value("Error")[0]
854 )
855
856
857def test_job_submit_program_not_found_file_exists(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 5

wait_for_job_stateFunction · 0.85
commandMethod · 0.80
get_column_valueMethod · 0.80
start_serverMethod · 0.45
start_workerMethod · 0.45

Tested by

no test coverage detected