diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-31 01:55:48 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-31 02:16:25 -0400 |
commit | 7706e16ed2a52829e5e95e1a6b68eee86b7a5eb4 (patch) | |
tree | 5e5d67cd317f9d71c5d8fbc5c502a4e66c65b42d /tests/test_completion.py | |
parent | df703af969219665b7d672025bf9b26f75a76285 (diff) | |
download | cmd2-git-7706e16ed2a52829e5e95e1a6b68eee86b7a5eb4.tar.gz |
Refactored complete() to handle custom behavior from read_input()
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-x | tests/test_completion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index ac4216bb..d0771795 100755 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -858,9 +858,9 @@ def test_no_completer(cmd2_app): first_match = complete_tester(text, line, begidx, endidx, cmd2_app) assert first_match is not None and cmd2_app.completion_matches == expected -def test_quote_as_command(cmd2_app): +def test_wordbreak_in_command(cmd2_app): text = '' - line = '" {}'.format(text) + line = '"{}'.format(text) endidx = len(line) begidx = endidx - len(text) |