diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-11-02 13:39:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 13:39:36 -0400 |
commit | a18eef6f6aa89280b5f9b92d4e681f22a438ff8b (patch) | |
tree | 6edce82378ac1fca1568c19ae4c723bb3ad4dbd4 /tests/test_cmd2.py | |
parent | 245dc33730d2a27bc9744be7cf36f176f5a0c10a (diff) | |
parent | 4ea04bc6e7d64d2e1f84ed2a512917576c715bcd (diff) | |
download | cmd2-git-a18eef6f6aa89280b5f9b92d4e681f22a438ff8b.tar.gz |
Merge pull request #798 from python-cmd2/refactoring
Refactoring
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 635e7ebd..cb66ac9b 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -20,7 +20,7 @@ except ImportError: from unittest import mock import cmd2 -from cmd2 import ansi, clipboard, constants, plugin, utils +from cmd2 import ansi, clipboard, constants, plugin, utils, COMMAND_NAME from .conftest import run_cmd, normalize, verify_help_text, HELP_HISTORY from .conftest import SHORTCUTS_TXT, SHOW_TXT, SHOW_LONG, complete_tester @@ -2342,7 +2342,7 @@ def test_disabled_command_not_in_history(disable_commands_app): assert saved_len == len(disable_commands_app.history) def test_disabled_message_command_name(disable_commands_app): - message_to_print = '{} is currently disabled'.format(cmd2.cmd2.COMMAND_NAME) + message_to_print = '{} is currently disabled'.format(COMMAND_NAME) disable_commands_app.disable_command('has_helper_funcs', message_to_print) out, err = run_cmd(disable_commands_app, 'has_helper_funcs') |