diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-18 21:05:10 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-18 21:05:10 -0500 |
commit | f7441431697e4ba94202a1484721ae8acf3a4ab7 (patch) | |
tree | 234c893f8cb90138d86b668ba12d0bf448de4b52 /tests/test_cmd2.py | |
parent | 970c5fc42c69c1c03640c979df341e85e3c38848 (diff) | |
download | cmd2-git-f7441431697e4ba94202a1484721ae8acf3a4ab7.tar.gz |
Moved custom cmd2 exceptions to a separate file and removed them from public API
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 dc9a3fa1..2db52d39 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, COMMAND_NAME +from cmd2 import ansi, clipboard, constants, exceptions, plugin, utils, COMMAND_NAME from .conftest import (run_cmd, normalize, verify_help_text, HELP_HISTORY, SHORTCUTS_TXT, SHOW_TXT, SHOW_LONG, complete_tester, odd_file_names) @@ -1258,7 +1258,7 @@ def multiline_app(): return app def test_multiline_complete_empty_statement_raises_exception(multiline_app): - with pytest.raises(cmd2.EmptyStatement): + with pytest.raises(exceptions.EmptyStatement): multiline_app._complete_statement('') def test_multiline_complete_statement_without_terminator(multiline_app): |