diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:11:38 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:11:38 -0400 |
commit | 48420deeceaeb5793d4e2616eec7ca2f67c545e0 (patch) | |
tree | 825d550028788c8fd95c6785fdb5ece7174dc5d2 /tests | |
parent | 245dc33730d2a27bc9744be7cf36f176f5a0c10a (diff) | |
download | cmd2-git-48420deeceaeb5793d4e2616eec7ca2f67c545e0.tar.gz |
Moving a bit of code around to shrink cmd2.py
This includes moving cmd2 decorators into a new file called decorators.py
Moved some constants from cmd2.py to constants.py
Diffstat (limited to 'tests')
-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') |