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

Function test_task_info_resources

tests/test_resources.py:411–426  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

409
410
411def test_task_info_resources(hq_env: HqEnv):
412 hq_env.start_server()
413 hq_env.start_worker()
414
415 hq_env.command(
416 [
417 "submit",
418 "--array=1-3",
419 "--resource",
420 "fairy=2",
421 "sleep 0",
422 ]
423 )
424
425 table = hq_env.command(["task", "info", "1", "1"], as_table=True)
426 table.check_row_value("Resources", "cpus: 1 compact\nfairy: 2 compact")
427
428
429def test_string_resource_list(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 4

commandMethod · 0.80
check_row_valueMethod · 0.80
start_serverMethod · 0.45
start_workerMethod · 0.45

Tested by

no test coverage detected