diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-03 23:15:53 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-03 23:15:53 -0600 |
commit | bf729520b88270df0a1e7b8faa79ac6784549d7b (patch) | |
tree | 9c1ef5b9258bd009146d6ac15a5218564550898d /tests | |
parent | dedd045666fe7bc90e3ba5f629c6b74673ccfec6 (diff) | |
download | cmd2-git-bf729520b88270df0a1e7b8faa79ac6784549d7b.tar.gz |
Fix #384, multiline commands now appear properly in transcripts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_transcript.py | 3 | ||||
-rw-r--r-- | tests/transcripts/expected_history.txt | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 3a8eee66..6e2b1cac 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -130,8 +130,7 @@ def test_history_transcript(request, capsys): app = CmdLineApp() app.stdout = StdOut() run_cmd(app, 'help') - run_cmd(app, 'speak lots of wierd [ /tmp ]: chars?') - run_cmd(app, 'speak /this is not a regex/') + run_cmd(app, 'orate this is\na multiline\ncommand;\n') # Get location of the expected transcript test_dir = os.path.dirname(request.module.__file__) diff --git a/tests/transcripts/expected_history.txt b/tests/transcripts/expected_history.txt index cfd1409d..55eceb81 100644 --- a/tests/transcripts/expected_history.txt +++ b/tests/transcripts/expected_history.txt @@ -12,7 +12,7 @@ Documented commands (type help <topic>): alias help load orate pyscript say shell speak edit history mumble py quit set shortcuts unalias -(Cmd) speak lots of wierd [ /tmp ]: chars? -lots of wierd [ \/tmp ]: chars? -(Cmd) speak /this is not a regex/ -\/this is not a regex\/ +(Cmd) orate this is +> a multiline +> command; +this is a multiline command |