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

Function test_string_resource_list

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

Source from the content-addressed store, hash-verified

427
428
429def test_string_resource_list(hq_env: HqEnv):
430 hq_env.start_server()
431
432 hq_env.command(
433 [
434 "submit",
435 "--array=1-3",
436 "--resource",
437 "fairy=2",
438 "sleep 0",
439 ]
440 )
441
442 table = hq_env.command(["task", "info", "1", "1"], as_table=True)
443 table.check_row_value("Resources", "cpus: 1 compact\nfairy: 2 compact")
444
445
446def test_resource_name_slash(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 3

commandMethod · 0.80
check_row_valueMethod · 0.80
start_serverMethod · 0.45

Tested by

no test coverage detected