diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-18 11:32:31 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-18 11:32:31 -0400 |
commit | 221deb85604d385830b1c8f6f41810d27d4724a8 (patch) | |
tree | feae2b946da5a0b40a50dcc3d3b53060e692b502 /tests/test_completion.py | |
parent | cafdc1cf64eccb12fba24b75c4df5cfd23f515e2 (diff) | |
parent | 4f63fdfdc9bf52e99220cd4b1a7a09ea5d78b239 (diff) | |
download | cmd2-git-221deb85604d385830b1c8f6f41810d27d4724a8.tar.gz |
Merge branch 'master' into quoted_completion
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index acb7d405..57424032 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -247,7 +247,7 @@ def test_shell_command_completion_doesnt_complete_when_just_shell(cmd2_app): line = 'shell' endidx = len(line) - begidx = endidx - len(text) + begidx = 0 assert cmd2_app.complete_shell(text, line, begidx, endidx) == [] def test_shell_command_completion_does_path_completion_when_after_command(cmd2_app, request): @@ -563,7 +563,7 @@ def test_flag_based_completion_no_tokens(): text = '' line = 'list_food' endidx = len(line) - begidx = endidx - len(text) + begidx = 0 assert flag_based_complete(text, line, begidx, endidx, flag_dict) == [] |