summaryrefslogtreecommitdiff
path: root/plugins/template/tests/test_myplugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/template/tests/test_myplugin.py')
-rw-r--r--plugins/template/tests/test_myplugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/template/tests/test_myplugin.py b/plugins/template/tests/test_myplugin.py
index d61181a6..dc3677da 100644
--- a/plugins/template/tests/test_myplugin.py
+++ b/plugins/template/tests/test_myplugin.py
@@ -2,6 +2,7 @@
# coding=utf-8
import cmd2_myplugin
+
from cmd2 import cmd2
######
@@ -13,6 +14,7 @@ from cmd2 import cmd2
class MyApp(cmd2_myplugin.MyPluginMixin, cmd2.Cmd):
"""Simple subclass of cmd2.Cmd with our SayMixin plugin included."""
+
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -20,6 +22,7 @@ class MyApp(cmd2_myplugin.MyPluginMixin, cmd2.Cmd):
def do_empty(self, args):
self.poutput("running the empty command")
+
#
# You can't use a fixture to instantiate your app if you want to use
# to use the capsys fixture to capture the output. cmd2.Cmd sets
@@ -43,6 +46,7 @@ def init_app():
#
#####
+
def test_say(capsys):
# call our initialization function instead of using a fixture
app = init_app()