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

Function test_progressbar_format_eta

tests/test_termui.py:133–135  ·  view source on GitHub ↗
(runner, eta, expected)

Source from the content-addressed store, hash-verified

131 ],
132)
133def test_progressbar_format_eta(runner, eta, expected):
134 with _create_progress(1, eta_known=eta is not None, avg=[eta]) as progress:
135 assert progress.format_eta() == expected
136
137
138@pytest.mark.parametrize("pos, length", [(0, 5), (-1, 1), (5, 5), (6, 5), (4, 0)])

Callers

nothing calls this directly

Calls 2

_create_progressFunction · 0.85
format_etaMethod · 0.80

Tested by

no test coverage detected