summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added fg_lookup() and bg_lookup() two-stage color lookup functionsTodd Leonhardt2019-06-271-0/+26
|
* Added unit testsKevin Van Brunt2019-06-271-7/+20
|
* Added unit tests for ansi.pyKevin Van Brunt2019-06-273-34/+73
|
* Made allow_ansi an application-wide setting and moved it to ansi.pyKevin Van Brunt2019-06-271-14/+10
|
* More replacing of 'colors' with 'allow_ansi'Kevin Van Brunt2019-06-263-6/+6
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-263-35/+35
|
* Changed signature of style() to allow for simpler calling and overriding of ↵Kevin Van Brunt2019-06-262-5/+5
| | | | settings in a provided TextStyle
* Added TextStyle class and default implementations for various message types ↵Kevin Van Brunt2019-06-262-5/+5
| | | | like Warning, Error, and Succes
* Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-262-17/+18
|
* Renamed style_message to styleKevin Van Brunt2019-06-262-7/+7
|
* Removed color args from poutput since the style function is going to do more ↵Kevin Van Brunt2019-06-251-4/+4
| | | | than color
* Removed end argument from style_messageKevin Van Brunt2019-06-251-2/+2
|
* Replaced more pexcept uses with perrorKevin Van Brunt2019-06-251-3/+3
|
* Add 2 tests to test_utils.py for style_message()Daniel Ahn2019-06-251-1/+20
|
* Revert change in test_poutput_color_alwaysDaniel Ahn2019-06-241-1/+1
|
* Initial Commit for Issue 698xNinjaKittyx2019-06-241-8/+6
|
* Made tokens_for_completion() method public since a couple of our examples use itTodd Leonhardt2019-06-231-5/+5
|
* Made last_result public and restored the initialization of it in __init__ ↵Todd Leonhardt2019-06-231-12/+12
| | | | and associated comment
* Restored a few attributes to be publicTodd Leonhardt2019-06-233-52/+52
|
* Added center_text() utility function for centering text in a terminal along ↵Todd Leonhardt2019-06-161-0/+23
| | | | | | with unit tests for it This function isn't used yet, but I have plans to use it when improving the output of transcript testing
* Modified a transcript used during testing to not run help so that it doesn't ↵Todd Leonhardt2019-06-151-15/+6
| | | | | | need to be changed any time the content of help changes Now the only test which should need to change when a command is added, deleted, or renamed (which isn't specifically related to that command) is test_get_all_commands
* Added verify_help_text() helper function for tests and removed BASE_HELP and ↵Todd Leonhardt2019-06-153-138/+59
| | | | | | BASE_HELP_VERBOSE constants The tests are now much more resilient to adding, removing, or renaming commands
* Updated CHANGELOG and made some more methods protectedTodd Leonhardt2019-06-151-3/+3
|
* Made more methods protectedTodd Leonhardt2019-06-151-3/+3
|
* Began work to minimize public APITodd Leonhardt2019-06-154-65/+65
|
* Updated various documentation and tests to not use loadTodd Leonhardt2019-06-152-4/+4
|
* Fix unit test failures I introduced in last commitTodd Leonhardt2019-06-152-2/+2
|
* Added unit testsKevin Van Brunt2019-06-152-12/+16
|
* Updated unit testsKevin Van Brunt2019-06-152-36/+43
|
* Renamed fileKevin Van Brunt2019-06-151-0/+0
|
* Updated unit testsKevin Van Brunt2019-06-151-4/+4
|
* Fixed unit testsKevin Van Brunt2019-06-154-11/+11
|
* Fixed unit testKevin Van Brunt2019-06-151-2/+3
|
* Fixing unit testsKevin Van Brunt2019-06-154-57/+35
|
* Fixed unit testsKevin Van Brunt2019-06-152-22/+25
|
* Fixing unit testsKevin Van Brunt2019-06-152-6/+8
|
* Merge branch 'master' into deprecate_34Todd Leonhardt2019-06-143-0/+69
|\
| * Added a unit test for HistoryItem.pr() in the case of non-verbose, ↵Todd Leonhardt2019-06-141-0/+12
| | | | | | | | | | | | | | non-expanded multiline commands Also: - Updated CHANGELOG to reflect that 0.9.13 release is planned for June 2019
| * Merge branch 'master' into history_fixesKevin Van Brunt2019-06-1412-189/+248
| |\
| * | Added unit test for _input_line_to_statementKevin Van Brunt2019-06-141-0/+14
| | |
| * | Fix history display issuesTodd Leonhardt2019-06-132-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command
* | | Deprecate support for Python 3.4 and begin testing with Python 3.8 betaTodd Leonhardt2019-06-141-6/+1
| |/ |/|
* | Updated unit testKevin Van Brunt2019-06-121-4/+3
| |
* | Transcript generation no longer terminates _cmdloop() when a command returns ↵Kevin Van Brunt2019-06-121-4/+3
| | | | | | | | True for stop
* | Fixed unit testsKevin Van Brunt2019-06-123-74/+93
| |
* | Removed support for cmd.cmdqueueKevin Van Brunt2019-06-113-40/+41
| | | | | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member
* | Added unit test for stopping during transcript generationKevin Van Brunt2019-06-101-0/+23
| |
* | Added unit testKevin Van Brunt2019-06-102-0/+23
| |
* | Removed copyright headers from source files and updated LICENSE with current ↵Kevin Van Brunt2019-06-079-27/+0
| | | | | | | | year
* | Removed self._should_quit from cmd2 and add logic to PyscriptBridge to ↵Kevin Van Brunt2019-06-071-1/+0
| | | | | | | | | | | | return whether a command returned True for stop. Added stop to CommandResult so pyscripts can now know the return value of a command's do_* function.