summaryrefslogtreecommitdiff
path: root/tests/pyscript/stop.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-14 17:36:44 -0400
committerGitHub <noreply@github.com>2019-06-14 17:36:44 -0400
commitddd07f9cd6d72baca1232ae98856cf3b3d564706 (patch)
tree8e03d435730baf1cc16ccc016e594d0b64d8e04a /tests/pyscript/stop.py
parentf64f9d559caa08b5649b9bd356af2812acf103bd (diff)
parent756d8d38502e934ea180c4cfb8dea3efd124a3bf (diff)
downloadcmd2-git-ddd07f9cd6d72baca1232ae98856cf3b3d564706.tar.gz
Merge pull request #696 from python-cmd2/script_refactor
Script refactor
Diffstat (limited to 'tests/pyscript/stop.py')
-rw-r--r--tests/pyscript/stop.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pyscript/stop.py b/tests/pyscript/stop.py
new file mode 100644
index 00000000..e731218e
--- /dev/null
+++ b/tests/pyscript/stop.py
@@ -0,0 +1,9 @@
+# flake8: noqa F821
+app.cmd_echo = True
+app('help')
+
+# This will set stop to True in the PyscriptBridge
+app('quit')
+
+# Exercise py_quit() in unit test
+quit()