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

Function test_propagate_rust_log_env

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

Source from the content-addressed store, hash-verified

491
492@all_flavors
493def test_propagate_rust_log_env(hq_env: HqEnv, flavor: ManagerFlavor):
494 manager = ExtractSubmitScriptPath(flavor.create_adapter())
495
496 with MockJobManager(hq_env, manager):
497 hq_env.start_server(env=dict(RUST_LOG="foo"))
498 prepare_tasks(hq_env)
499
500 add_queue(
501 hq_env,
502 manager=flavor.manager_type(),
503 )
504
505 script = manager.get_script_path()
506 line = parse_exec_line(script)
507 assert line.env["RUST_LOG"] == "foo"
508
509
510@all_flavors

Callers

nothing calls this directly

Calls 9

get_script_pathMethod · 0.95
MockJobManagerClass · 0.85
prepare_tasksFunction · 0.85
parse_exec_lineFunction · 0.85
add_queueFunction · 0.70
create_adapterMethod · 0.45
start_serverMethod · 0.45
manager_typeMethod · 0.45

Tested by

no test coverage detected