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

Function prepare_localhost_nodefile

tests/test_worker.py:424–429  ·  view source on GitHub ↗
(count: int = 1)

Source from the content-addressed store, hash-verified

422
423
424def prepare_localhost_nodefile(count: int = 1) -> str:
425 path = "nodefile.txt"
426 with open(path, "w") as f:
427 for _ in range(count):
428 print("localhost", file=f)
429 return path
430
431
432def test_worker_state_info(hq_env: HqEnv):

Calls

no outgoing calls

Tested by

no test coverage detected