diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-26 11:40:15 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-26 11:40:15 -0400 |
commit | dfbe317a7cc52b691723698b4464b260996ab425 (patch) | |
tree | 85df59946767d98d80a9bf4d0cab367ab4aae3c7 /tests | |
parent | 2cc1b90eba33fae1bf8d06a49bb9f64b662569ad (diff) | |
download | cmd2-git-dfbe317a7cc52b691723698b4464b260996ab425.tar.gz |
Refactored filtering in path_complete to use a function
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_completion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 0df06423..9f681359 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -399,7 +399,7 @@ def test_path_completion_directories_only(cmd2_app, request): expected = [text + 'cripts' + os.path.sep] - assert cmd2_app.path_complete(text, line, begidx, endidx, dir_only=True) == expected + assert cmd2_app.path_complete(text, line, begidx, endidx, os.path.isdir) == expected def test_basic_completion_single(cmd2_app): text = 'Pi' |