summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* apply pyupgrade --py36-plusDavid Lord2020-04-191-12/+10
|
* remove more compat codeDavid Lord2020-04-191-17/+2
|
* manual cleanupDavid Lord2020-03-081-4/+4
|
* apply flake8David Lord2020-03-061-3/+2
|
* apply blackDavid Lord2020-03-061-142/+139
|
* apply reorder-python-importsDavid Lord2020-03-061-3/+3
|
* refactor open_stream and text stream utilitiesDavid Lord2020-02-191-55/+32
|
* open_file respects "errors" parameterJoe Ledger2020-02-161-0/+60
| | | | Signed-off-by: Joe Ledger <joewledger@gmail.com>
* Add tests for atomic open_file permissionsMax Smolens2020-02-161-0/+43
|
* add test for unstyling other ansi controlsDavid Lord2020-02-161-25/+38
| | | | parametrize existing unstyle test
* CliRunner: add stdout / stderr, allow separating standard streams (#868)Dave Carlson2018-05-141-5/+5
| | | * add separated stderr to test runner
* Merge pull request #889 from stefreak/masterDan Sully2018-05-141-3/+25
|\ | | | | Implement streaming pager. Fixes #409
| * Implement streaming pager. Fixes #409Steffen Neubauer2018-04-041-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The streaming pager works using generators. You can pass a generator function or object into echo_via_pager: generator expression: ``` click.echo_via_pager(("{}\n".format(i) for i in range(999999))) ``` generator function / expression: ``` def gen(): counter = 0 while True: counter++ yield counter click.echo_via_pager(gen) click.echo_via_pager(gen()) # you can pass both ```
* | Fix ResourceWarning that occur during testsJon Dufresne2017-10-171-6/+7
|/ | | | | | | | | Appear as: ResourceWarning: unclosed file ... Always close a file explicitly. Use a context manager to make this simpler.
* Added two xfailsArmin Ronacher2015-11-051-4/+4
|
* Fixed broken tests and behavior on windows.Armin Ronacher2015-11-051-3/+11
|
* Ignore broken PAGER valuesMarkus Unterwaditzer2015-08-081-2/+5
| | | | Fix #403
* Password prompt now prints a newline on `^C`.Markus Unterwaditzer2015-07-251-0/+15
|
* Merge branch '4.x-maintenance'Markus Unterwaditzer2015-06-211-0/+7
|\
| * Fix crash when writing to unicode filesMarkus Unterwaditzer2015-06-211-0/+7
| | | | | | | | Fix #339
* | Make click.utils.KeepOpenFile() and LazyFile() iterators.Kevin Wurster2015-05-201-1/+22
|/
* Fixed up pausing tests and added doc information.Armin Ronacher2014-09-101-6/+5
|
* Tests for prompt-stderr. click.pause() failsKiss György2014-08-261-0/+58
|
* Added support for explicit color control.Armin Ronacher2014-08-151-0/+27
|
* Added test for open_fileArmin Ronacher2014-08-121-0/+21
|
* Fixed a regression for echo_via_pager on 3.x. This fixes #185Armin Ronacher2014-07-081-0/+11
|
* Changed occurrences of "on Python" to "in Python"Kevin Yap2014-05-311-2/+2
|
* yN->y/NArmin Ronacher2014-05-281-0/+40
|
* Added tests for stylingArmin Ronacher2014-05-271-0/+28
|
* Fixed a test on python 3Armin Ronacher2014-05-261-1/+1
|
* Ensure we do not strip color codes for bytes.Armin Ronacher2014-05-261-0/+5
|
* Unbroke colorama integrated echo for unicode.Armin Ronacher2014-05-261-0/+19
|
* Refactored pager support to not rely on pydocArmin Ronacher2014-05-261-1/+2
|
* Fixed a broken test on 3.x1.x-maintenanceArmin Ronacher2014-05-241-1/+1
|
* Added filename format functionArmin Ronacher2014-05-221-0/+9
|
* Added echo testsArmin Ronacher2014-05-111-0/+11