diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 19:31:52 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 19:31:52 -0400 |
commit | 202cc074d10f61742e22dcdcea217ee03cc3cc17 (patch) | |
tree | a5b8b6bc4f565d9700a3e9ffcf2f77f951be0128 /tests/test_completion.py | |
parent | 9d9e843845b57419e4be1abc65119b1d04dfa0f0 (diff) | |
download | cmd2-git-202cc074d10f61742e22dcdcea217ee03cc3cc17.tar.gz |
Simplifying adding opening quotes
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index f7caf03a..2bcaff25 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -795,10 +795,7 @@ def test_subcommand_tab_completion_add_quote(sc_app): begidx = endidx - len(text) first_match = complete_tester(text, line, begidx, endidx, sc_app) - - # No matches are returned when an opening quote is added to the screen - assert first_match is None - assert readline.get_line_buffer() == 'base sport "Space Ball" ' + assert first_match is not None and sc_app.completion_matches == ['"Space Ball" '] def test_subcommand_tab_completion_space_in_text(sc_app): text = 'B' |