summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in `parse_command_only`kotfu2018-09-091-33/+76
| | | | More robust unit tests identified a bug, which is also fixed in this commit.
* Docstring updatesKevin Van Brunt2018-09-092-14/+14
|
* Took a stab at improving documentation and unit tests for ↵Todd Leonhardt2018-09-081-10/+50
| | | | | | Statement.parse_command_only() Also slightly improved a few other unit tests
* Use attrs on Statement object to do immutabilityTodd Leonhardt2018-09-061-1/+15
|
* Add back previously removed tests for statement.argskotfu2018-09-051-2/+45
|
* Using empty strings and lists instead of None for default values in StatmentKevin Van Brunt2018-09-011-27/+30
|
* Merge branch 'master' into quoted_argsTodd Leonhardt2018-08-273-12/+10
|\
| * Merge branch 'master' into ac_parserTodd Leonhardt2018-08-241-0/+75
| |\
| * | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵Kevin Van Brunt2018-08-243-12/+10
| | | | | | | | | | | | easier to format help/description text
* | | Merge branch 'master' into quoted_argsKevin Van Brunt2018-08-241-0/+75
|\ \ \ | | |/ | |/|
| * | Added a couple unit tests of the exit code featureTodd Leonhardt2018-08-231-0/+75
| |/
* | Removed Statement.args since it was redundant. Replaced with already parsed ↵Kevin Van Brunt2018-08-231-98/+83
| | | | | | | | list of args with quotes preserved.
* | Fixed bug where alias was dropping quotesKevin Van Brunt2018-08-231-0/+9
|/
* Updated changelogTodd Leonhardt2018-08-211-0/+14
| | | | | Also: - Added unit tests for get_all_commands() and get_help_topcis() methods
* Allow newlines inside unclosed quotes. Fixes #495kotfu2018-08-081-1/+16
|
* parse_command_only now appropriately sets multiline_commandkotfu2018-08-081-0/+10
|
* Add unit tests to validate embedded newline parsingkotfu2018-08-061-1/+18
|
* Added more unit tests for utils.pyTodd Leonhardt2018-08-021-2/+38
|
* Addeded utility function for combining unicode normalization and casefolding ↵Todd Leonhardt2018-08-021-0/+16
| | | | | | | | into a single step Also: - Updated the alphabetical sort utility function to use this - Started adding explicit unit tests for functions in utils.py
* Updated docs and unit testsKevin Van Brunt2018-08-021-1/+1
|
* Added alphabetical_sort() functionKevin Van Brunt2018-08-011-1/+1
|
* Added matches_sorted member to support custom sorting order of ↵Kevin Van Brunt2018-08-011-3/+3
| | | | | | | tab-completion matches Made all sorting alphabetical Fixed case where extra slash was printing when tab completing users on Windows
* Add test to assert cmd2.__version__ existskotfu2018-07-291-0/+3
|
* Use setuptools_scm for version numberskotfu2018-07-291-4/+0
|
* Fix unit test on VSTS Hosted Linux agentsTodd Leonhardt2018-07-171-2/+8
|
* Attempt at fixing WSL unit test bug #472Todd Leonhardt2018-07-171-3/+3
|
* Merged master with bug fix for #474Todd Leonhardt2018-07-171-5/+18
|\
| * Bug fix and unit tests for #474kotfu2018-07-161-4/+18
| |
* | Started updating CHANGELOGTodd Leonhardt2018-07-161-1/+1
| | | | | | | | | | | | Also: - Bumped version to 0.9.4 - Updated info in Readme and Sphinx docs to reflect new dependency on attrs
* | Add tests for StatementParser() created with no arguments.kotfu2018-07-151-0/+26
| |
* | Fix for #417, call preparse()kotfu2018-07-151-0/+24
| |
* | Resolved merge conflict from merging master into plugin_functionsTodd Leonhardt2018-07-122-13/+108
|\ \ | |/
| * Added a session-scoped test fixture to ensure teardown of the persistent ↵Todd Leonhardt2018-07-121-14/+22
| | | | | | | | | | | | | | history file Also: - Switched to writing the file in the temp directory
| * Added unit tests for persistent history fileKevin Van Brunt2018-07-121-0/+63
| |
| * Added unit testsKevin Van Brunt2018-07-121-4/+29
| |
| * Merge branch 'master' into historyKevin Van Brunt2018-07-121-0/+15
| |\
| * | Added --clear argument to history commandKevin Van Brunt2018-07-112-9/+8
| | | | | | | | | | | | | | | | | | Added better error checking when loading readline history file Improved some error messages Changed IOError usages to OSError since they were merged in Python 3.3.
* | | Merge branch 'master' into plugin_functionsTodd Leonhardt2018-07-111-0/+15
|\ \ \ | | |/ | |/|
| * | Added a couple simple unit tests for the case where onecmd accepts a raw stringTodd Leonhardt2018-07-101-0/+15
| |/
* | Merge branch 'master' into plugin_functionskotfu2018-07-051-13/+14
|\ \ | |/
| * Bumped version to 0.9.3 now that 0.9.2 release is outTodd Leonhardt2018-06-281-1/+1
| |
| * Bump version to 0.9.2 in preparation for releaseTodd Leonhardt2018-06-281-1/+1
| |
| * Deprecated CmdResult helper class and promoted CommandResultTodd Leonhardt2018-06-231-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These classes are subtly different, particularly in terms of their truthiness. CmdResult - attributes: out, err, war - truthy: if err is falsy CommandResult - attributes: stdout, stderr, data - truthy: if err is falsy AND data is not None So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.
* | Add command finalization hookskotfu2018-07-051-3/+139
| |
* | Postcommand hooks implementedkotfu2018-06-221-26/+172
| |
* | Revise precommand hooks to use `data` parameterkotfu2018-06-211-7/+7
| |
* | Use `data` instead of `params`kotfu2018-06-211-12/+12
| |
* | Revised postparsing hookskotfu2018-06-211-6/+52
| |
* | Merge branch 'master' into plugin_functionskotfu2018-06-211-5/+5
|\ \ | |/ | | | | | | # Conflicts: # cmd2/cmd2.py
| * Moved clipboard/pastebuffer functionality to new file clipboard.pyTodd Leonhardt2018-06-181-5/+5
| | | | | | | | | | Also: - Converted global can_clip variable to an instance attribute of cmd2.Cmd class