diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 00:09:55 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 00:09:55 -0400 |
commit | c66d02852baf91d04b568b709db70a10487203f0 (patch) | |
tree | eeb5141eaa037e5a1824f0fc9612a1383353a1d9 /tests/test_completion.py | |
parent | 05d2d2b850abc1354636ddf9148b358acc366b99 (diff) | |
download | cmd2-git-c66d02852baf91d04b568b709db70a10487203f0.tar.gz |
Added some basic user completion on Windows
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 9d6fdc5a..ad1e5b57 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -352,12 +352,8 @@ def test_path_completion_expand_user_dir(cmd2_app): begidx = endidx - len(text) completions = cmd2_app.path_complete(text, line, begidx, endidx) - # On Windows there should be no results, since it lacks the pwd module - if sys.platform.startswith('win'): - assert completions == [] - else: - expected = text + os.path.sep - assert expected in completions + expected = text + os.path.sep + assert expected in completions def test_path_completion_user_expansion(cmd2_app): # Run path with a tilde and a slash |