(running=0, waiting=0, finished=0, failed=0, canceled=0, aborted=0)
| 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 |
no test coverage detected