(capsys, width=40)
| 14 | |
| 15 | |
| 16 | def check_bar_completed(capsys, width=40): |
| 17 | out, err = capsys.readouterr() |
| 18 | assert out.count("100% Completed") == 1 |
| 19 | bar, percent, time = (i.strip() for i in out.split("\r")[-1].split("|")) |
| 20 | assert bar == "[" + "#" * width + "]" |
| 21 | assert percent == "100% Completed" |
| 22 | |
| 23 | |
| 24 | def test_array_compute(capsys): |
no test coverage detected