diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-17 10:04:25 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-17 10:04:25 -0400 |
commit | 17eefdeb934525772885ff31f80a0d5a016a5b52 (patch) | |
tree | af2c2be429ebf31183826fceaafe23581a38a3b4 /tests/test_transcript.py | |
parent | 60ab11c3166a2a76bf67774c67b583d7d30fe5be (diff) | |
download | cmd2-git-17eefdeb934525772885ff31f80a0d5a016a5b52.tar.gz |
No longer printing all help text for alias and macro when the subcommand is omitted. Instead allow argparse to handle the error.
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 1d930c26..5739ad8e 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -224,13 +224,13 @@ def test_generate_transcript_stop(capsys): os.close(fd) # This should run all commands - commands = ['help', 'alias'] + commands = ['help', 'set'] app._generate_transcript(commands, transcript_fname) _, err = capsys.readouterr() assert err.startswith("2 commands") # Since quit returns True for stop, only the first 2 commands will run - commands = ['help', 'quit', 'alias'] + commands = ['help', 'quit', 'set'] app._generate_transcript(commands, transcript_fname) _, err = capsys.readouterr() assert err.startswith("Command 2 triggered a stop") |