Debian Codegraph @

tests/test_backwards_compatibility.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 import time
2
3 import progressbar
4
5
6 def test_progressbar_1_widgets() -> None:
7 widgets = [
8 progressbar.AdaptiveETA(format='Time left: %s'),
9 progressbar.Timer(format='Time passed: %s'),
10 progressbar.Bar(),
11 ]
12
13 bar = progressbar.ProgressBar(widgets=widgets, max_value=100).start()
14
15 for i in range(1, 101):
16 bar.update(i)
17 time.sleep(0.1)