From 2bac6bcda3b7c5b2ba7093955acf232dd89f9f0f Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Sat, 11 Apr 2020 13:04:52 -0400 Subject: Made some optional arguments with defaults keyword-only. Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed. --- tests/pyscript/echo.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pyscript/echo.py (limited to 'tests/pyscript/echo.py') 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) -- cgit v1.2.1