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

Method handle_cli_submit

tests/autoalloc/test_autoalloc.py:96–108  ·  view source on GitHub ↗
(self, input: CommandInput)

Source from the content-addressed store, hash-verified

94def test_slurm_queue_sbatch_additional_output(hq_env: HqEnv):
95 class Handler(CommandHandler):
96 async def handle_cli_submit(self, input: CommandInput) -> CommandOutput:
97 output = await super().handle_cli_submit(input)
98 return response(
99 f"""
100No reservation for this job
101--> Verifying valid submit host (login)...OK
102--> Verifying valid jobname...OK
103--> Verifying valid ssh keys...OK
104--> Verifying access to desired queue (normal)...OK
105--> Checking available allocation...OK
106{output.stdout}
107"""
108 )
109
110 with MockJobManager(hq_env, Handler(SlurmManagerFlavor().create_adapter())):
111 start_server_with_quick_refresh(hq_env)

Callers 1

handle_cli_submitMethod · 0.45

Calls 1

responseFunction · 0.85

Tested by

no test coverage detected