summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-01 17:23:03 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-01 17:23:03 -0400
commita33da043985257e1ed0ac7b3524e27d62611b1ac (patch)
treed88eea8b24974a31d9d6d8dce1fbd67b766e1b84 /tests
parent77a36b1b20b32ddca608421b8831938ada46c06c (diff)
downloadcmd2-git-a33da043985257e1ed0ac7b3524e27d62611b1ac.tar.gz
Added unit tests for CommandSet callbacks
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_cmd2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 3b240e4e..be6f52d1 100755
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -2247,7 +2247,7 @@ def test_disable_and_enable_category(disable_commands_app):
# Make sure neither function completes
text = ''
- line = 'has_helper_funcs'
+ line = 'has_helper_funcs {}'.format(text)
endidx = len(line)
begidx = endidx - len(text)
@@ -2255,7 +2255,7 @@ def test_disable_and_enable_category(disable_commands_app):
assert first_match is None
text = ''
- line = 'has_no_helper_funcs'
+ line = 'has_no_helper_funcs {}'.format(text)
endidx = len(line)
begidx = endidx - len(text)
@@ -2291,7 +2291,7 @@ def test_disable_and_enable_category(disable_commands_app):
# has_helper_funcs should complete now
text = ''
- line = 'has_helper_funcs'
+ line = 'has_helper_funcs {}'.format(text)
endidx = len(line)
begidx = endidx - len(text)
@@ -2300,7 +2300,7 @@ def test_disable_and_enable_category(disable_commands_app):
# has_no_helper_funcs had no completer originally, so there should be no results
text = ''
- line = 'has_no_helper_funcs'
+ line = 'has_no_helper_funcs {}'.format(text)
endidx = len(line)
begidx = endidx - len(text)