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

Function test_deploy_ssh_error

tests/test_worker.py:335–342  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

333
334
335def test_deploy_ssh_error(hq_env: HqEnv):
336 hq_env.start_server()
337 with hq_env.mock.mock_program_with_code(
338 "ssh",
339 "exit(42)",
340 ):
341 nodefile = prepare_localhost_nodefile()
342 hq_env.command(["worker", "deploy-ssh", nodefile], expect_fail="Worker exited with code 42")
343
344
345def ssh_code_dump_args_to_file(path: str) -> str:

Callers

nothing calls this directly

Calls 4

commandMethod · 0.80
start_serverMethod · 0.45

Tested by

no test coverage detected