Debian Codegraph @

tests/test_data_transfer_bar.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 progressbar
2 from progressbar import DataTransferBar
3
4
5 def test_known_length() -> None:
6 dtb = DataTransferBar().start(max_value=50)
7 for i in range(50):
8 dtb.update(i)
9 dtb.finish()
10
11
12 def test_unknown_length() -> None:
13 dtb = DataTransferBar().start(max_value=progressbar.UnknownLength)
14 for i in range(50):
15 dtb.update(i)
16 dtb.finish()