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

Function test_manager_slurm

tests/test_manager.py:130–137  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

128
129
130def test_manager_slurm(hq_env: HqEnv):
131 hq_env.start_server()
132
133 with hq_env.mock.mock_program_with_code("scontrol", scontrol_return("abcd")):
134 hq_env.start_worker(cpus=1, args=["--manager", "slurm"], env={"SLURM_JOB_ID": "abcd"})
135
136 table = hq_env.command(["worker", "list"], as_table=True)
137 table.check_columns_value(["Manager", "Manager Job ID"], 0, ["SLURM", "abcd"])

Callers

nothing calls this directly

Calls 6

scontrol_returnFunction · 0.85
commandMethod · 0.80
check_columns_valueMethod · 0.80
start_serverMethod · 0.45
start_workerMethod · 0.45

Tested by

no test coverage detected