Basic functionality of `TerminalProgressBar`
()
| 65 | |
| 66 | |
| 67 | def test_TerminalProgressBar(): |
| 68 | """Basic functionality of `TerminalProgressBar`""" |
| 69 | |
| 70 | # We just run the sequence of instructions. I didn't find a way to check the output, |
| 71 | # since 'progress' package requires TTY terminal. Otherwise output is blocked |
| 72 | title = "Monitor progress" |
| 73 | pbar = TerminalProgressBar(title) |
| 74 | pbar.start() |
| 75 | for n in range(10): |
| 76 | pbar(n * 10) # Go from 0 to 90% |
| 77 | pbar.finish() # This should set it to 100% |
| 78 | |
| 79 | |
| 80 | class _SampleProgressBar: |
nothing calls this directly
no test coverage detected