summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 22:52:50 -0400
committerGitHub <noreply@github.com>2020-09-03 22:52:50 -0400
commite7bf6c193e7adb55986af730eb5bbd9facb182f7 (patch)
tree96e4fa1ac5cb57696aef2a0b454e0265dc5825c3 /tests/test_cmd2.py
parent36b0b75265942fe375545beb7d2d8a2c5f6f63c4 (diff)
parent85ad31905780b19d2c16965110eda7577c057708 (diff)
downloadcmd2-git-e7bf6c193e7adb55986af730eb5bbd9facb182f7.tar.gz
Merge pull request #990 from python-cmd2/on_registered
Added callbacks to CommandSet
Diffstat (limited to 'tests/test_cmd2.py')
-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)