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

Function test_deploy_ssh_show_output

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

Source from the content-addressed store, hash-verified

395
396
397def test_deploy_ssh_show_output(hq_env: HqEnv):
398 hq_env.start_server()
399 with hq_env.mock.mock_program_with_code(
400 "ssh",
401 """
402print("FOOBAR")
403""",
404 ):
405 nodefile = prepare_localhost_nodefile(count=3)
406 output = hq_env.command(["worker", "deploy-ssh", "--show-output", nodefile])
407 assert "FOOBAR" in output
408
409
410def test_deploy_ssh_custom_port(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 4

commandMethod · 0.80
start_serverMethod · 0.45

Tested by

no test coverage detected