summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Negative ending history indices include the referenced command, instead of ↵kotfu2019-03-111-5/+5
| | | | excluding it
* Allow both history indices to be negativekotfu2019-03-101-1/+4
|
* Merge branch 'history_improvements' of github.com:python-cmd2/cmd2 into ↵kotfu2019-03-102-0/+127
|\ | | | | | | history_improvements
| * Merge branch 'master' into disable_commandKevin Van Brunt2019-03-101-0/+22
| |\
| | * Replaced StdSim.__store_output with StdSim.pause_storageKevin Van Brunt2019-03-091-0/+22
| | |
| * | Added function to report that a disabled command has been run.Kevin Van Brunt2019-03-101-0/+8
| | | | | | | | | | | | Not adding disabled commands to the history when run.
| * | Increased code coverageKevin Van Brunt2019-03-101-0/+8
| | |
| * | Added unit tests for disabling commandsKevin Van Brunt2019-03-091-0/+89
| |/
* | Clean up history commandkotfu2019-03-091-23/+35
| |
* | Clean up unused variableskotfu2019-03-091-2/+2
| |
* | Reworked get() on History classkotfu2019-03-091-8/+30
|/
* Added a shlex.split() wrapper to have a common way of calling it.Kevin Van Brunt2019-03-051-12/+0
| | | | Replaced parse_quoted_string with _get_command_arg_list.
* Merged master into this branch and resolved conflicts in CHANGELOGTodd Leonhardt2019-03-045-331/+435
|\
| * Merged master into history and resolved conflictsTodd Leonhardt2019-03-043-82/+43
| |\
| * | Fixed a couple bugs and added unit testsTodd Leonhardt2019-03-031-1/+8
| | |
| * | Merged from master and resolved conflicts in cmd2.pyTodd Leonhardt2019-03-0220-294/+14
| |\ \
| * \ \ Merge branch 'master' into historyTodd Leonhardt2019-02-282-258/+27
| |\ \ \
| * | | | Fixed commentsKevin Van Brunt2019-02-261-2/+2
| | | | |
| * | | | Fixed unit test which was slow on macOS and hung forever on WindowsTodd Leonhardt2019-02-261-3/+7
| | | | |
| * | | | Merged master into history branch and fixed merge conflictsTodd Leonhardt2019-02-262-18/+16
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into historyKevin Van Brunt2019-02-202-2/+6
| |\ \ \ \ \
| * | | | | | expanded history searches with string or regex for #545kotfu2019-02-161-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | history -v with a string or regex search now searches both the entered command as well as the expanded command
| * | | | | | Move the rest of the history tests into test_history.pykotfu2019-02-093-115/+128
| | | | | | |
| * | | | | | Added -x option to history command for #545kotfu2019-02-091-2/+59
| | | | | | |
| * | | | | | Extract history classes and test into their own fileskotfu2019-02-092-190/+209
| | | | | | |
| * | | | | | Merge branch 'master' into historyTodd Leonhardt2019-02-071-1/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into historyKevin Van Brunt2019-01-081-2/+26
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge branch 'master' into historyKevin Van Brunt2018-12-072-11/+11
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge branch 'master' into historyKevin Van Brunt2018-12-062-27/+20
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge branch 'master' into historyKevin Van Brunt2018-12-0633-3/+33
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | First version of adding an expanded option to history itemsKevin Van Brunt2018-12-033-44/+28
| | | | | | | | | | | |
* | | | | | | | | | | | Merge master into with_argument_list and resolved conflictsTodd Leonhardt2019-03-043-81/+43
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | |
| * | | | | | | | | | | Added unit testsKevin Van Brunt2019-03-011-0/+22
| | | | | | | | | | | |
| * | | | | | | | | | | Removed support for c-style and embedded commentsKevin Van Brunt2019-03-013-81/+21
| | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | |
* | | | | | | | | | | Fix for when with_argument_list is called with preserve_quotes optional argumentTodd Leonhardt2019-03-041-0/+8
|/ / / / / / / / / /
* | | | | | | | | | Fixed a lot of warningsKevin Van Brunt2019-03-011-0/+3
| | | | | | | | | |
* | | | | | | | | | Removed ability to call commands as if they were functions in pyscript (e.g. ↵Kevin Van Brunt2019-02-2820-294/+11
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | app.help())
* | | | | | | | | Added unit test for matches_sort_keyKevin Van Brunt2019-02-271-1/+27
| | | | | | | | |
* | | | | | | | | Made cmd2_app a positional and required argument of AutoCompleter.Kevin Van Brunt2019-02-231-257/+0
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deleted bash tab completion support. AutoCompleter no longer assumes CompletionItem results are sorted.
* | | | | | | | Fixed unit test that was hanging on WindowsKevin Van Brunt2019-02-221-4/+8
| | | | | | | |
* | | | | | | | Removed os.system in favor of do_shellKevin Van Brunt2019-02-211-19/+17
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Changed examples to reflect that settable doesn't need to be updated before ↵Kevin Van Brunt2019-02-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | calling init()
* | | | | | | Added unit testKevin Van Brunt2019-02-201-0/+3
| |_|_|_|_|/ |/| | | | |
* | | | | | Increased code coverageKevin Van Brunt2019-01-241-1/+1
| |_|_|_|/ |/| | | |
* | | | | Fixed typos in commentsTodd Leonhardt2018-12-131-2/+2
| | | | |
* | | | | Fixed bug in cmd2.Cmd.select() when user enters 0 or negative numberTodd Leonhardt2018-12-131-1/+25
| |_|_|/ |/| | |
* | | | Fix Deprecation warnings for escape sequenceskotfu2018-12-061-5/+5
| | | |
* | | | Change deprecated mock to mockerkotfu2018-12-061-6/+6
| |_|/ |/| |
* | | Removed ERROR: text from perror outputKevin Van Brunt2018-12-062-27/+20
| |/ |/|
* | Fix flake8 issuesTodd Leonhardt2018-12-0633-3/+33
|/ | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined