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

Function test_resource_min_time

tests/pyapi/test_job.py:318–330  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

316
317
318def test_resource_min_time(hq_env: HqEnv):
319 (job, client) = prepare_job_client(hq_env)
320
321 job.program(
322 args=bash("echo Hello"),
323 resources=[
324 ResourceRequest(min_time=datetime.timedelta(seconds=42)),
325 ],
326 )
327 client.submit(job)
328
329 data = hq_env.command(["--output-mode=json", "job", "info", "last"], as_json=True)[0]
330 assert data["submits"][0]["graph"][0]["resources"][0]["min_time"] == 42.0
331
332
333def test_job_name(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 6

ResourceRequestClass · 0.90
prepare_job_clientFunction · 0.85
bashFunction · 0.85
programMethod · 0.80
commandMethod · 0.80
submitMethod · 0.45

Tested by

no test coverage detected