summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed unnecessary inheritance from objectKevin Van Brunt2020-02-041-1/+1
|
* Updated set command to support tab completion of valuesKevin Van Brunt2020-02-041-5/+5
|
* Made three public attributes of cmd2.Cmd no longer settable at runtime by ↵Todd Leonhardt2020-01-271-6/+0
| | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt
* Updated documentationKevin Van Brunt2020-01-071-1/+1
|
* Merge branch 'master' into ansi_to_styleKevin Van Brunt2019-12-191-0/+9
|\
| * Updating unit testsKevin Van Brunt2019-12-171-0/+9
| |
* | Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵Kevin Van Brunt2019-12-191-2/+2
|/ | | | sequences are handled
* Fixed documentation for run_script and renamed history optionKevin Van Brunt2019-07-161-4/+4
|
* Make max_completion_items settableKevin Van Brunt2019-07-151-0/+2
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-261-2/+2
|
* Restored a few attributes to be publicTodd Leonhardt2019-06-231-1/+1
|
* Added verify_help_text() helper function for tests and removed BASE_HELP and ↵Todd Leonhardt2019-06-151-26/+18
| | | | | | BASE_HELP_VERBOSE constants The tests are now much more resilient to adding, removing, or renaming commands
* Began work to minimize public APITodd Leonhardt2019-06-151-1/+1
|
* Fixing unit testsKevin Van Brunt2019-06-151-4/+6
|
* Deprecate support for Python 3.4 and begin testing with Python 3.8 betaTodd Leonhardt2019-06-141-6/+1
|
* Removed copyright headers from source files and updated LICENSE with current ↵Kevin Van Brunt2019-06-071-3/+0
| | | | year
* 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-271-1/+2
| | | | | | | | | | 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
* 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.
* Made run_cmd return out and errKevin Van Brunt2019-03-201-9/+31
|
* Move the rest of the history tests into test_history.pykotfu2019-02-091-6/+11
|
* Merge branch 'master' into historyKevin Van Brunt2018-12-061-2/+2
|\
| * Fix flake8 issuesTodd Leonhardt2018-12-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | First version of adding an expanded option to history itemsKevin Van Brunt2018-12-031-1/+2
|/
* Made it so default_to_shell results in do_shell being called so that output ↵Kevin Van Brunt2018-11-301-1/+1
| | | | can be captured
* Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-281-3/+2
|\
| * Addressing code review commentsKevin Van Brunt2018-09-281-3/+2
| |
* | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-271-3/+1
|\ \ | |/
| * Made _func_named() more reliableKevin Van Brunt2018-09-271-3/+1
| | | | | | | | Added unit tests
* | Converted help to argparseKevin Van Brunt2018-09-261-1/+1
| |
* | Tweaked help textKevin Van Brunt2018-09-261-5/+5
| |
* | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-261-13/+5
|\ \ | |/
| * Merge branch 'master' into macroKevin Van Brunt2018-09-261-12/+4
| |\
| | * Merged master in to colorize and resolved conflictsTodd Leonhardt2018-09-241-22/+4
| | |\
| | * \ Merge branch 'master' into colorizeTodd Leonhardt2018-09-211-6/+7
| | |\ \
| | * | | cmd2.Cmd.__init__ now initializes colorama and tells it to never strip ANSI ↵Todd Leonhardt2018-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | codes since cmd2 deals with that Also: - Finished editing poutput(), ppaged(), and pfeedback() methods to strip ANSI color when appropriate - Changed attr.ib() factory usage so cmd2 is compatible with older versions of attrs
| | * | | Merged master into colorize branchTodd Leonhardt2018-09-121-8/+8
| | |\ \ \
| | * \ \ \ Merged master in and resolved conflictsTodd Leonhardt2018-09-041-4/+4
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | @kotfu - I hope this doesn't screw you up, but I wanted to minimize some of the merge pain that will likely be coming up soon
| | * | | | | First pass at improved colorizingkotfu2018-08-111-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings
| * | | | | | Updated documentationKevin Van Brunt2018-09-261-2/+2
| | | | | | |
* | | | | | | First steps in converting all commands to argparseKevin Van Brunt2018-09-261-8/+8
|/ / / / / /
* | | | | | Fixing unit testsKevin Van Brunt2018-09-251-5/+5
| |_|_|_|/ |/| | | |
* | | | | Fixed several hack classes build to simulate file descriptorsTodd Leonhardt2018-09-231-18/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now there is a single class, StdSim in utils.py, which is intended to simulate stdout and stderr file objects. This class replaced the following: - pyscript_bridge.py::CopyStream - transcript.py::OutputTrap - conftest.py::StdOut
* | | | Removed remaining type hints in docstringsKevin Van Brunt2018-09-211-6/+7
| |_|/ |/| |
* | | Docstring updatesKevin Van Brunt2018-09-091-8/+8
| |/ |/|
* | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵Kevin Van Brunt2018-08-241-4/+4
|/ | | | easier to format help/description text
* Added --clear argument to history commandKevin Van Brunt2018-07-111-3/+4
| | | | | | 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.
* Standardize cmd2 imports in tests and exampleskotfu2018-05-231-1/+1
|
* Merge branch 'bash_completion' into bash_to_pyscriptEric Lin2018-05-021-1/+1
|\
| * Removed the expensive imports from cmd2/__init__.pyEric Lin2018-04-251-1/+1
| | | | | | | | | | | | | | Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369