diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-20 20:36:33 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-20 20:36:33 -0700 |
commit | f0c3cbffa35dfe26b8ac54ea1450ed50ba787c9a (patch) | |
tree | 03b0e85aaaccc0706caf5658446dda0a5a13cd9f /tests/test_plugin.py | |
parent | 1e57b0c451de23338378f44088118648848cc82c (diff) | |
parent | 22de85832e877b5b360eeacd4b71e00f69bf00e1 (diff) | |
download | cmd2-git-f0c3cbffa35dfe26b8ac54ea1450ed50ba787c9a.tar.gz |
Merge branch 'master' into api_docs
# Conflicts:
# CHANGELOG.md
# cmd2/__init__.py
# cmd2/decorators.py
# docs/api/utility_functions.rst
Diffstat (limited to 'tests/test_plugin.py')
-rw-r--r-- | tests/test_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_plugin.py b/tests/test_plugin.py index f7065db5..c118b60d 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -14,7 +14,7 @@ except ImportError: from unittest import mock import cmd2 -from cmd2 import plugin +from cmd2 import exceptions, plugin class Plugin: @@ -81,7 +81,7 @@ class Plugin: def postparse_hook_emptystatement(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData: """A postparsing hook with raises an EmptyStatement exception""" self.called_postparsing += 1 - raise cmd2.EmptyStatement + raise exceptions.EmptyStatement def postparse_hook_exception(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData: """A postparsing hook which raises an exception""" @@ -126,7 +126,7 @@ class Plugin: def precmd_hook_emptystatement(self, data: plugin.PrecommandData) -> plugin.PrecommandData: """A precommand hook which raises an EmptyStatement exception""" self.called_precmd += 1 - raise cmd2.EmptyStatement + raise exceptions.EmptyStatement def precmd_hook_exception(self, data: plugin.PrecommandData) -> plugin.PrecommandData: """A precommand hook which raises an exception""" |