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

Function test_function_name_in_exception

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

Source from the content-addressed store, hash-verified

118
119
120def test_function_name_in_exception(hq_env: HqEnv):
121 def foo_bar_baz():
122 raise Exception("Foo")
123
124 (job, client) = prepare_job_client(hq_env)
125 job.function(foo_bar_baz)
126
127 job_id = client.submit(job)
128
129 with pytest.raises(FailedJobsException, match="foo_bar_baz"):
130 client.wait_for_jobs([job_id])
131
132
133def test_function_resource_variants(hq_env: HqEnv):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected