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

Function test_progressbar_format_pos

tests/test_termui.py:139–142  ·  view source on GitHub ↗
(runner, pos, length)

Source from the content-addressed store, hash-verified

137
138@pytest.mark.parametrize("pos, length", [(0, 5), (-1, 1), (5, 5), (6, 5), (4, 0)])
139def test_progressbar_format_pos(runner, pos, length):
140 with _create_progress(length, pos=pos) as progress:
141 result = progress.format_pos()
142 assert result == f"{pos}/{length}"
143
144
145@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

_create_progressFunction · 0.85
format_posMethod · 0.80

Tested by

no test coverage detected