MCPcopy Create free account
hub / github.com/dask/dask / check_bar_completed

Function check_bar_completed

dask/diagnostics/tests/test_progress.py:16–21  ·  view source on GitHub ↗
(capsys, width=40)

Source from the content-addressed store, hash-verified

14
15
16def 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
24def test_array_compute(capsys):

Callers 6

test_array_computeFunction · 0.85
test_progressbarFunction · 0.85
test_registerFunction · 0.85
test_no_tasksFunction · 0.85
test_with_cacheFunction · 0.85
test_with_aliasFunction · 0.85

Calls 2

splitMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected