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

Function check

tests/test_job.py:292–305  ·  view source on GitHub ↗
(running=0, waiting=0, finished=0, failed=0, canceled=0, aborted=0)

Source from the content-addressed store, hash-verified

290 hq_env.start_server()
291
292 def check(running=0, waiting=0, finished=0, failed=0, canceled=0, aborted=0):
293 table = hq_env.command(["job", "summary"], as_table=True)
294
295 items = (
296 ("RUNNING", running),
297 ("WAITING", waiting),
298 ("FINISHED", finished),
299 ("FAILED", failed),
300 ("ABORTED", aborted),
301 ("CANCELED", canceled),
302 )
303 for index, (status, count) in enumerate(items):
304 table.check_column_value("Status", index, status)
305 table.check_column_value("Count", index, str(count))
306
307 check()
308

Callers 2

test_job_summaryFunction · 0.70

Calls 2

commandMethod · 0.80
check_column_valueMethod · 0.80

Tested by

no test coverage detected