summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Made it so default_to_shell results in do_shell being called so that output ↵Kevin Van Brunt2018-11-302-35/+12
| | | | can be captured
* Renamed display_width to ansi_safe_wcswidthKevin Van Brunt2018-11-161-2/+2
|
* Added wrapper for wcswidth that removes ansi escape charactersKevin Van Brunt2018-11-151-0/+5
|
* Strip color codes when redirecting w/ ppaged()Ethan McCreadie2018-11-011-0/+18
|
* Added more code coverage of shell_cmd_completeKevin Van Brunt2018-10-261-0/+15
|
* Added more coverage for path_completeKevin Van Brunt2018-10-261-3/+24
|
* Refactored filtering in path_complete to use a functionKevin Van Brunt2018-10-261-1/+1
|
* Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵Todd Leonhardt2018-10-181-10/+0
| | | | deprecated in 0.9.5
* You can now call a macro with extra argumentsKevin Van Brunt2018-10-121-11/+20
|
* Fixed ArgparseFunctor to allow flag looking tokens in REMAINDER sectionsKevin Van Brunt2018-10-101-2/+3
|
* Fixed issue where flag at beginning of REMAINDER section was tab completingKevin Van Brunt2018-10-101-8/+23
|
* Added code to handle -- in argparse completerKevin Van Brunt2018-10-103-34/+57
|
* Increasing code coverageKevin Van Brunt2018-10-091-0/+24
|
* Added unit testsKevin Van Brunt2018-10-091-1/+18
|
* Added additional unit test for StdSimTodd Leonhardt2018-10-091-0/+12
|
* Added tests for token_resembles_flagKevin Van Brunt2018-10-091-1/+16
|
* Fixed unit test failures and addressed code review commentsTodd Leonhardt2018-10-061-1/+1
|
* No longer using stderr and self.data together to determine truthiness of a ↵Kevin Van Brunt2018-10-051-1/+15
| | | | | | | CommandResult. Either self.data is used or if that's not possible, then self.stderr is used. This provided applications the ability to print to stderr even if an error didn't occur.
* Using sub-command instead of subcommand where possible to be consistent with ↵Kevin Van Brunt2018-10-053-28/+28
| | | | argparse
* Added unit tests for new methods of StdSimTodd Leonhardt2018-10-031-0/+10
|
* Added unit test for valid case of calling is_valid_command()Todd Leonhardt2018-10-031-6/+12
|
* Added unit test for is_valid_commandKevin Van Brunt2018-10-031-0/+26
|
* Merge branch 'master' into py_enhancementsTodd Leonhardt2018-10-031-1/+7
|\
| * Added unit test for categorized command without a docstringKevin Van Brunt2018-10-031-1/+7
| |
* | Returned cmd_echo default to False except when running a Python command at ↵Kevin Van Brunt2018-10-0218-0/+18
| | | | | | | | the CLI
* | Don't worry about unquoting alias and macro names as they shouldn't be ↵Kevin Van Brunt2018-10-021-32/+0
| | | | | | | | entered this way anyway
* | Default cmd_echo to True in PyscriptBridge so things like 'py app.help()' ↵Kevin Van Brunt2018-10-0218-18/+0
|/ | | | will show output
* Remove self from pystate if locals_in_py is FalseKevin Van Brunt2018-10-011-1/+18
|
* Preserving quotes for do_py inputKevin Van Brunt2018-10-011-0/+5
|
* Fixed transcript testing bug where last command in transcript has no ↵Todd Leonhardt2018-09-303-1/+9
| | | | | | | expected output Also: - Added unit test for this specific case
* Merged master into transcript_fixes branch and resolved conflictsTodd Leonhardt2018-09-3014-295/+968
|\
| * Added more code coverage with unit testsKevin Van Brunt2018-09-281-0/+17
| |
| * Added unit test for onchange_hookKevin Van Brunt2018-09-281-0/+24
| |
| * Added more code coverageKevin Van Brunt2018-09-281-0/+9
| |
| * Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-282-7/+6
| |\
| | * Addressing code review commentsKevin Van Brunt2018-09-282-7/+6
| | |
| * | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-273-7/+22
| |\ \ | | |/
| | * Made _func_named() more reliableKevin Van Brunt2018-09-272-4/+19
| | | | | | | | | | | | Added unit tests
| | * Addressing code review commentsKevin Van Brunt2018-09-271-3/+3
| | |
| * | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-272-0/+116
| |\ \ | | |/