summaryrefslogtreecommitdiff
path: root/tests/test_termui.py
Commit message (Collapse)AuthorAgeFilesLines
* f-strings everywhereDavid Lord2020-04-191-2/+2
|
* apply pyupgrade --py36-plusDavid Lord2020-04-191-9/+8
|
* Merge branch '7.x'David Lord2020-03-081-126/+139
|\
| * apply pyupgradeDavid Lord2020-03-081-1/+1
| |
| * apply formattingDavid Lord2020-03-061-5/+1
| |
| * apply flake8David Lord2020-03-061-23/+16
| |
| * apply blackDavid Lord2020-03-061-94/+115
| |
| * apply reorder-python-importsDavid Lord2020-03-061-3/+2
| |
* | Merge branch '7.x'David Lord2020-02-191-0/+38
|\ \ | |/ | | | | | | # Conflicts: # CHANGES.rst
| * type is always IOBase, handle lazy fileDavid Lord2020-02-191-9/+14
| |
| * Formatting file option prompting to path onlyicreatedanaccount2020-02-191-0/+13
| |
| * Restore progressbar iterator interface; add testStephen Rosen2020-02-161-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add a test for iterating on a progressbar with next() - implement `next()` in terms of `iter(ProgressBar)`, which is already well-defined - add a note about slow operations with progressbar to narrative docs One of the keys to this working is that `ProgressBar.generator` is consuming an iterable and doesn't store any important state in local variables, making it re-entry safe. I wasn't sure how we can best hint in the public docs that simply walking the bar and stopping one step short of finishing will result in the progress bar "hanging" unfinished. Noting that we work well with things like `time.sleep()` seems like a decent way of advertising positively something which we support *and* guiding anyone going off-book into proper usage. closes #1125
* | allow ProgressBar.update to set current_itemChristopher Palmer2019-08-011-0/+44
|/ | | | | This allows updating what item is displayed when using ProgressBar.update to control the exact progress.
* fix py2 windows getchar testDavid Lord2019-08-011-1/+3
|
* Expand unit testing around termui (getchar testing for Windows)icreatedanaccount2019-05-241-2/+145
|
* Add missing fake clock in termui testsJan Christoph Bischko2018-05-151-2/+7
|
* Fix test for delayed progress bar displayJan Christoph Bischko2018-05-151-2/+83
|
* length hint test: ensure iterator compatibility for older python versionsRonny Pfannschmidt2015-12-131-0/+2
|
* introduce int_types compat to fix python3 type error in _length_hintRonny Pfannschmidt2015-12-131-0/+28
|
* Added termui testsArmin Ronacher2014-08-111-0/+14