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

Function test_progress_bar_update_min_steps

tests/test_termui.py:343–350  ·  view source on GitHub ↗
(runner)

Source from the content-addressed store, hash-verified

341
342
343def test_progress_bar_update_min_steps(runner):
344 bar = _create_progress(update_min_steps=5)
345 bar.update(3)
346 assert bar._completed_intervals == 3
347 assert bar.pos == 0
348 bar.update(2)
349 assert bar._completed_intervals == 0
350 assert bar.pos == 5
351
352
353@pytest.mark.parametrize("key_char", ("h", "H", "é", "À", " ", "字", "àH", "àR"))

Callers

nothing calls this directly

Calls 2

_create_progressFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected