summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-20 17:55:18 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-20 17:55:18 -0400
commit7c563413767ecc50ad459517004f2ff5d694977a (patch)
treec7abae3d9fcd6829cf9771221b6fba5850dc9608 /tests/test_completion.py
parent8ba1e4e723982918ccd179dd1ae008daea20c619 (diff)
downloadcmd2-git-7c563413767ecc50ad459517004f2ff5d694977a.tar.gz
Fixed some unit tests
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 40a328da..323eb0d0 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -381,7 +381,7 @@ def test_path_completion_doesnt_match_wildcards(request):
def test_path_completion_invalid_syntax():
# Test a missing separator between a ~ and path
- text = ''
+ text = '~Desktop'
line = 'shell fake ~Desktop'
endidx = len(line)
begidx = endidx - len(text)
@@ -390,14 +390,14 @@ def test_path_completion_invalid_syntax():
def test_path_completion_just_tilde():
# Run path with just a tilde
- text = ''
+ text = '~'
line = 'shell fake ~'
endidx = len(line)
begidx = endidx - len(text)
completions_tilde = path_complete(text, line, begidx, endidx)
# Path complete should return a slash
- assert completions_tilde == [os.path.sep]
+ assert completions_tilde == ['~' + os.path.sep]
def test_path_completion_user_expansion():
# Run path with a tilde and a slash