Skip to content

Commit 71a1afe

Browse files
committed
added backwards compatibility tests
1 parent 50dffb6 commit 71a1afe

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import time
2+
import progressbar
3+
4+
5+
def test_progressbar_1_widgets():
6+
widgets = [
7+
progressbar.AdaptiveETA(format="Time left: %s"),
8+
progressbar.Timer(format="Time passed: %s"),
9+
progressbar.Bar()
10+
]
11+
12+
bar = progressbar.ProgressBar(widgets=widgets, max_value=100).start()
13+
14+
for i in range(1, 101):
15+
bar.update(i)
16+
time.sleep(0.1)

0 commit comments

Comments
 (0)