diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-05-21 12:19:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-21 12:19:51 -0400 |
commit | c2594ff278ac50556cf4781910439ea1977a5873 (patch) | |
tree | ac10af5c53c45221062ff7440ea16a7343e7c230 /tests/test_autocompletion.py | |
parent | a38e3f26887f60a358a5e36421a52526a04637f5 (diff) | |
parent | 34c7e650145c21499f3cc7667b71bb44c65fab01 (diff) | |
download | cmd2-git-c2594ff278ac50556cf4781910439ea1977a5873.tar.gz |
Merge pull request #409 from python-cmd2/autocompleter
Autocompleter
Diffstat (limited to 'tests/test_autocompletion.py')
-rw-r--r-- | tests/test_autocompletion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_autocompletion.py b/tests/test_autocompletion.py index 1d0c9678..e0a71831 100644 --- a/tests/test_autocompletion.py +++ b/tests/test_autocompletion.py @@ -168,7 +168,7 @@ def test_autocomp_subcmd_nested(cmd2_app): first_match = complete_tester(text, line, begidx, endidx, cmd2_app) assert first_match is not None and \ - cmd2_app.completion_matches == ['add', 'delete', 'list'] + cmd2_app.completion_matches == ['add', 'delete', 'list', 'load'] def test_autocomp_subcmd_flag_choices_append(cmd2_app): @@ -246,7 +246,7 @@ def test_autcomp_pos_consumed(cmd2_app): def test_autcomp_pos_after_flag(cmd2_app): text = 'Joh' - line = 'media movies add -d "George Lucas" -- "Han Solo" PG "Emilia Clarke" "{}'.format(text) + line = 'video movies add -d "George Lucas" -- "Han Solo" PG "Emilia Clarke" "{}'.format(text) endidx = len(line) begidx = endidx - len(text) |