summaryrefslogtreecommitdiff
path: root/tests/pyscript/echo.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-11 13:33:45 -0400
committerGitHub <noreply@github.com>2020-04-11 13:33:45 -0400
commitc4fbd8fa618b5c48cc38ac5c262d3c1ec53ce9af (patch)
tree6bbe109ac6bc4dc5082fc8cd8e6cecd6a94ac677 /tests/pyscript/echo.py
parent0d4be64b6ec76fcf5f87933293dbc7c134a32cf0 (diff)
parent526ab5325536f91c48867f4497f4b3dd4150f482 (diff)
downloadcmd2-git-c4fbd8fa618b5c48cc38ac5c262d3c1ec53ce9af.tar.gz
Merge pull request #918 from python-cmd2/echo_updates
App echo updates
Diffstat (limited to 'tests/pyscript/echo.py')
-rw-r--r--tests/pyscript/echo.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pyscript/echo.py b/tests/pyscript/echo.py
new file mode 100644
index 00000000..d95e19db
--- /dev/null
+++ b/tests/pyscript/echo.py
@@ -0,0 +1,9 @@
+# flake8: noqa F821
+# Tests echo argument to app()
+app.cmd_echo = False
+
+# echo defaults to current setting which is False, so this help text should not be echoed to pytest's stdout
+app('help alias')
+
+# pytest's stdout should have this help text written to it
+app('help edit', echo=True)