diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-08-02 23:49:08 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-08-02 23:49:08 -0400 |
commit | 9a5fb90f18e90dbecf3a33337bbda36403b2256d (patch) | |
tree | e024487508974a3d234f1ae4c84d009323a82a3c | |
parent | c79e56d4a3a41bd2d4b152a27c2334fd9d238fd4 (diff) | |
download | cmd2-git-9a5fb90f18e90dbecf3a33337bbda36403b2256d.tar.gz |
Updated docs and unit tests
-rwxr-xr-x | README.md | 3 | ||||
-rw-r--r-- | tests/test_completion.py | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -34,7 +34,6 @@ Main Features - Ability to load commands at startup from an initialization script - Settable environment parameters - Parsing commands with arguments using `argparse`, including support for sub-commands -- Sub-menu support via the ``AddSubmenu`` decorator - Unicode character support - Good tab-completion of commands, sub-commands, file system paths, and shell commands - Support for Python 3.4+ on Windows, macOS, and Linux @@ -58,7 +57,7 @@ pip install -U cmd2 ``` cmd2 works with Python 3.4+ on Windows, macOS, and Linux. It is pure Python code with -the only 3rd-party dependencies being on [attrs](https://github.com/python-attrs/attrs), +the only 3rd-party dependencies being on [attrs](https://github.com/python-attrs/attrs), [colorama](https://github.com/tartley/colorama), and [pyperclip](https://github.com/asweigart/pyperclip). Windows has an additional dependency on [pyreadline](https://pypi.python.org/pypi/pyreadline). Non-Windows platforms have an additional dependency on [wcwidth](https://pypi.python.org/pypi/wcwidth). Finally, Python diff --git a/tests/test_completion.py b/tests/test_completion.py index d50ad039..00a120cc 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -252,7 +252,7 @@ def test_path_completion_multiple(cmd2_app, request): endidx = len(line) begidx = endidx - len(text) - matches = sorted(cmd2_app.path_complete(text, line, begidx, endidx)) + matches = cmd2_app.path_complete(text, line, begidx, endidx) expected = [text + 'cript.py', text + 'cript.txt', text + 'cripts' + os.path.sep] assert matches == expected |