1 Debian patch touch this file
| 1 | import time |
| 2 | |
| •3 | import progressbar2 |
| 4 | |
| 5 | |
| 6 | def test_large_max_value() -> None: |
| •7 | with progressbar2.ProgressBar(max_value=1e10) as bar: |
| 8 | for i in range(10): |
| 9 | bar.update(i) |
| 10 | time.sleep(0.1) |
| 11 | |
| 12 | |
| 13 | def test_value_beyond_max_value() -> None: |
| •14 | with progressbar2.ProgressBar(max_value=10, max_error=False) as bar: |
| 15 | for i in range(20): |
| 16 | bar.update(i) |
| 17 | time.sleep(0.01) |