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

Function test_default_workdir

tests/pyapi/test_function.py:75–84  ·  view source on GitHub ↗
(hq_env: HqEnv)

Source from the content-addressed store, hash-verified

73
74
75def test_default_workdir(hq_env: HqEnv):
76 workdir = Path("foo").resolve()
77 (job, client) = prepare_job_client(hq_env, default_workdir=workdir)
78
79 def fn():
80 assert os.getcwd() == str(workdir)
81
82 job.function(fn)
83 job_id = client.submit(job)
84 client.wait_for_jobs([job_id])
85
86
87def test_default_env(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 5

prepare_job_clientFunction · 0.85
functionMethod · 0.80
resolveMethod · 0.45
submitMethod · 0.45
wait_for_jobsMethod · 0.45

Tested by

no test coverage detected