From 61523bff1b6fb5c1f74bae12de3a7d297aaf92cc Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 3 Jun 2018 23:27:06 -0600 Subject: add comment headers to better organize code --- tests/test_plugin.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.1