MCPcopy
hub / github.com/pallets/click / test_progressbar_time_per_iteration

Function test_progressbar_time_per_iteration

tests/test_termui.py:110–112  ·  view source on GitHub ↗
(runner, avg, expected)

Source from the content-addressed store, hash-verified

108
109@pytest.mark.parametrize("avg, expected", [([], 0.0), ([1, 4], 2.5)])
110def test_progressbar_time_per_iteration(runner, avg, expected):
111 with _create_progress(2, avg=avg) as progress:
112 assert progress.time_per_iteration == expected
113
114
115@pytest.mark.parametrize("finished, expected", [(False, 5), (True, 0)])

Callers

nothing calls this directly

Calls 1

_create_progressFunction · 0.85

Tested by

no test coverage detected