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

Function normalize_output

tests/autoalloc/test_autoalloc.py:142–147  ·  view source on GitHub ↗
(hq_env: HqEnv, manager: Literal["pbs", "slurm"], output: str)

Source from the content-addressed store, hash-verified

140
141
142def normalize_output(hq_env: HqEnv, manager: Literal["pbs", "slurm"], output: str) -> str:
143 return (
144 output.replace(get_hq_binary(), "<hq-binary>")
145 .replace(hq_env.server_dir, "<server-dir>")
146 .replace(f'"{manager}"', '"<manager>"')
147 )
148
149
150def test_pbs_multinode_allocation(hq_env: HqEnv):

Calls 1

get_hq_binaryFunction · 0.50

Tested by

no test coverage detected