summaryrefslogtreecommitdiff
path: root/tests/test_plugin.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-06-03 23:27:06 -0600
committerkotfu <kotfu@kotfu.net>2018-06-03 23:27:06 -0600
commit61523bff1b6fb5c1f74bae12de3a7d297aaf92cc (patch)
treec3c54126a8c475f97e711b6872cb3090ea66dc5b /tests/test_plugin.py
parent7321cb97e8b2796882f1200b865771dfd441849b (diff)
downloadcmd2-git-61523bff1b6fb5c1f74bae12de3a7d297aaf92cc.tar.gz
add comment headers to better organize code
Diffstat (limited to 'tests/test_plugin.py')
-rw-r--r--tests/test_plugin.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index 714001d7..d4d6166e 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -25,6 +25,12 @@ class Plugin:
self.called_postparsing = 0
self.called_precmd = 0
+ ###
+ #
+ # preloop and postloop hooks
+ # which share the same signature and are thus interchangable
+ #
+ ###
def prepost_hook_one(self) -> None:
"Method used for preloop or postloop hooks"
self.poutput("one")
@@ -41,6 +47,11 @@ class Plugin:
"A preloop or postloop hook with incorrect return type"
pass
+ ###
+ #
+ # Postparsing hooks
+ #
+ ###
def postparse_hook(self, statement: cmd2.Statement) -> Tuple[bool, cmd2.Statement]:
"A postparsing hook"
self.called_postparsing += 1