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

Function start_server_get_output

tests/test_server.py:19–29  ·  view source on GitHub ↗
(hq_env: HqEnv, args: List[str])

Source from the content-addressed store, hash-verified

17
18
19def start_server_get_output(hq_env: HqEnv, args: List[str]) -> Table:
20 command = hq_env.server_args()
21 command += args
22 p = subprocess.Popen(command, stdout=subprocess.PIPE)
23 try:
24 stdout, stderr = p.communicate(timeout=0.5)
25 except subprocess.TimeoutExpired:
26 p.kill()
27 stdout, stderr = p.communicate()
28 stdout = stdout.decode()
29 return parse_table(stdout)
30
31
32def test_server_host(hq_env: HqEnv):

Callers 3

test_server_hostFunction · 0.85
test_server_client_portFunction · 0.85
test_server_worker_portFunction · 0.85

Calls 3

parse_tableFunction · 0.85
server_argsMethod · 0.80
killMethod · 0.80

Tested by

no test coverage detected