summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-19 21:40:15 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-19 21:40:15 -0500
commit486b8c726a7d657ef320e68598077c31fa664790 (patch)
tree46b53d0f530d6ae273c4379272684ee80026658a /tests/test_completion.py
parent3e180a810e9c4b9d251c135667d1d150b0bbd0dd (diff)
downloadcmd2-git-486b8c726a7d657ef320e68598077c31fa664790.tar.gz
Fixed black, isort, flake8, and doc8 issues
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-xtests/test_completion.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 1a8e5c4d..6a6e2eff 100755
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -69,8 +69,9 @@ class CompletionsExample(cmd2.Cmd):
def __init__(self):
cmd2.Cmd.__init__(self, multiline_commands=['test_multiline'])
self.foo = 'bar'
- self.add_settable(utils.Settable('foo', str, description="a settable param",
- completer=CompletionsExample.complete_foo_val))
+ self.add_settable(
+ utils.Settable('foo', str, description="a settable param", completer=CompletionsExample.complete_foo_val)
+ )
def do_test_basic(self, args):
pass
@@ -913,6 +914,7 @@ 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_wordbreak_in_command(cmd2_app):
text = ''
line = '"{}'.format(text)