From a33da043985257e1ed0ac7b3524e27d62611b1ac Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 1 Sep 2020 17:23:03 -0400 Subject: Added unit tests for CommandSet callbacks --- tests/test_cmd2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_cmd2.py') 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) -- cgit v1.2.1