(runner, pos, length)
| 137 | |
| 138 | @pytest.mark.parametrize("pos, length", [(0, 5), (-1, 1), (5, 5), (6, 5), (4, 0)]) |
| 139 | def 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( |
nothing calls this directly
no test coverage detected