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

Function test_too_high_time_request

tests/autoalloc/test_autoalloc.py:401–410  ·  view source on GitHub ↗
(hq_env: HqEnv, flavor: ManagerFlavor)

Source from the content-addressed store, hash-verified

399
400@all_flavors
401def test_too_high_time_request(hq_env: HqEnv, flavor: ManagerFlavor):
402 with MockJobManager(hq_env, flavor.default_handler()):
403 start_server_with_quick_refresh(hq_env)
404 hq_env.command(["submit", "--time-request", "1h", "sleep", "1"])
405
406 add_queue(hq_env, manager=flavor.manager_type(), name="foo", time_limit="30m")
407 time.sleep(1)
408
409 table = hq_env.command(["alloc", "info", "1"], as_table=True)
410 assert len(table) == 0
411
412
413def get_exec_line(script_path: str):

Callers

nothing calls this directly

Calls 7

MockJobManagerClass · 0.85
default_handlerMethod · 0.80
commandMethod · 0.80
sleepMethod · 0.80
add_queueFunction · 0.70
manager_typeMethod · 0.45

Tested by

no test coverage detected