summaryrefslogtreecommitdiff
path: root/tests/test_plugin.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-19 00:09:52 -0500
committerGitHub <noreply@github.com>2020-02-19 00:09:52 -0500
commit566f38c158e6e758a75ab7d9a020fa9e798d194a (patch)
tree19e80cf50968d7ae7573de1a8e6418a1f80b24bc /tests/test_plugin.py
parent970c5fc42c69c1c03640c979df341e85e3c38848 (diff)
parenteecb0ac77e75ae5c6917a6768d8a62cb5789649b (diff)
downloadcmd2-git-566f38c158e6e758a75ab7d9a020fa9e798d194a.tar.gz
Merge pull request #893 from python-cmd2/EmptyStatement_visibility
Empty statement visibility adjustment
Diffstat (limited to 'tests/test_plugin.py')
-rw-r--r--tests/test_plugin.py6
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"""