summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Refactored how and when transcript file glob patterns are expanded in order ↵Todd Leonhardt2019-06-061-1/+20
| | | | to present a better error message to user
* Merge branch 'master' into script_refactorKevin Van Brunt2019-06-062-126/+346
|\
| * Changed wrapping point of history's help text to match all other help text ↵Kevin Van Brunt2019-06-051-1/+2
| | | | | | | | in cmd2
| * Add the -a/--all flag to the history command for showing all commands ↵Todd Leonhardt2019-05-272-4/+77
| | | | | | | | | | | | | | | | | | | | including those persisted from previous sessions Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests
| * Improve unit test coverage for historykotfu2019-05-251-65/+128
| |
| * Refactored implementation of HistoryItem.__str__ and added an explicit ↵Todd Leonhardt2019-05-251-6/+15
| | | | | | | | HistoryItem unit test
| * Manually check whether persistent_history_file is a directorykotfu2019-05-251-12/+5
| |
| * Another try to fix the appveyor on windows permission issuekotfu2019-05-251-10/+12
| |
| * Try and fix an Appveyor permission problemkotfu2019-05-251-1/+6
| |
| * Resolve PR feedbackkotfu2019-05-251-8/+5
| |
| * Populate readline history from unpickled historykotfu2019-05-241-40/+28
| |
| * Refactor HistoryItem to not subclass strkotfu2019-05-241-30/+91
| |
| * Cleanup some history testskotfu2019-05-241-7/+3
| |
| * Initializing history now detects plaintext or pickle formatkotfu2019-05-241-8/+40
| |
* | Removed _STOP_AND_EXIT cmd2 class member since it was meant to be a boolean ↵Kevin Van Brunt2019-06-041-1/+2
| | | | | | | | constant and was only used internally
* | Running commands from history stops if a command returns True for its stop ↵Kevin Van Brunt2019-05-241-1/+0
| | | | | | | | value. The command loop will also terminate.
* | Removed most return statements from finally blocks to avoid hiding exceptionsKevin Van Brunt2019-05-241-5/+10
| |
* | Change load to run scripts immediately instead of queueing commandsKevin Van Brunt2019-05-231-66/+65
|/
* Modified transcript testing so that the useless exception trackeback isn't ↵Todd Leonhardt2019-05-211-2/+2
| | | | printed in failure cases
* Refactor exit_code implementationTodd Leonhardt2019-05-203-5/+34
| | | | | | | | | | | | cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer Also: - Refactored examples to call sys.exit(app.cmdloop()) in their __main__ - Running transcript tests now sets the exit_code accordingly based on success/failure - Updated CHANGELOG - Updated README - Updated Sphinx docs - Added unit test for case when transcript test fails
* Added unit testsKevin Van Brunt2019-05-151-17/+39
|
* Increased code coverage of _complete_worker() to 100%Kevin Van Brunt2019-05-131-2/+43
|
* Added unit testsKevin Van Brunt2019-05-131-0/+28
|
* Added unit testKevin Van Brunt2019-05-131-0/+15
|
* Added unit testsKevin Van Brunt2019-05-131-1/+99
|
* Removed unused codeKevin Van Brunt2019-05-131-1/+0
|
* Fixed parsing issue in case where output redirection (e.g. > file) appears ↵Kevin Van Brunt2019-05-131-4/+8
| | | | | | before a pipe. In that case, the pipe was given precedence even though it appeared later in the command.
* Added capability to redirect pipe commands and chain them togetherKevin Van Brunt2019-05-072-18/+17
|
* Merged master and resolved conflicts in CHANGELOGTodd Leonhardt2019-05-072-4/+33
|\
| * Improved code coverageKevin Van Brunt2019-05-071-4/+15
| |
| * Merge branch 'master' into completion_exceptionsKevin Van Brunt2019-05-062-8/+8
| |\
| * \ Merge branch 'master' into completion_exceptionsKevin Van Brunt2019-05-061-1/+0
| |\ \
| * | | Exceptions occurring in tab completion functions are now printed to stderr ↵Kevin Van Brunt2019-05-061-0/+18
| | | | | | | | | | | | | | | | before returning control back to readline
* | | | Merge branch 'master' into macro_refactorKevin Van Brunt2019-05-062-8/+8
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into argparse_errorKevin Van Brunt2019-05-061-1/+0
| |\ \ \ | | | |/ | | |/|
| * | | ACArgumentParser no longer prints complete help text when a parsing error occursKevin Van Brunt2019-05-062-8/+8
| | |/ | |/|
* | | Merge branch 'master' into macro_refactorKevin Van Brunt2019-05-061-1/+0
|\ \ \ | | |/ | |/|
| * | Fixed issue where the wrong terminator was being appended by ↵Kevin Van Brunt2019-05-061-1/+0
| |/ | | | | | | Statement.expanded_command_line()
* | Updated unit testKevin Van Brunt2019-05-051-6/+6
| |
* | Broke _complete_statement into 2 functions.Kevin Van Brunt2019-05-051-0/+5
| | | | | | | | Fixed issue where terminators could not be used in alias/macro values.
* | Macros can now share their name with a commandKevin Van Brunt2019-05-021-5/+0
| |