summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-18 13:49:11 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-18 13:49:11 -0400
commit3931341dcfad64299da55979c8759d68626ecb5b (patch)
tree29e8d65354c05e819d88a2c982e3e42e5cc303db /tests/test_completion.py
parent6ac3d49383b37830c8fb7ce5fc83ac6d088a492c (diff)
parent221deb85604d385830b1c8f6f41810d27d4724a8 (diff)
downloadcmd2-git-3931341dcfad64299da55979c8759d68626ecb5b.tar.gz
Merge branch 'quoted_completion' of github.com:python-cmd2/cmd2 into quoted_completion
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py4
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) == []