diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-23 22:51:36 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-23 22:51:36 -0500 |
commit | 10dafac6350e04cf9af3449916edad5be21ba689 (patch) | |
tree | 6b3b0c61f431f54fdf13d26d9dd7a9a8ba8153dc /tests/test_transcript.py | |
parent | bc57f016e603ec9e92c8a15d366e76d07d7dd762 (diff) | |
download | cmd2-git-10dafac6350e04cf9af3449916edad5be21ba689.tar.gz |
Fix the unit test for testing a transcript
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index dfb37da7..d7e40295 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -66,7 +66,6 @@ def _get_transcript_blocks(transcript): yield cmd, _normalize(expected) -@pytest.mark.xfail def test_base_with_transcript(_cmdline_app): app = _cmdline_app transcript = """ @@ -99,20 +98,6 @@ goodnight, Gracie OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY -(Cmd) set -abbrev: True -case_insensitive: True -colors: True -continuation_prompt: > -debug: False -default_file_name: command.txt -echo: False -editor: /\w*/ -feedback_to_output: False -maxrepeats: 3 -prompt: (Cmd) -quiet: False -timing: False (Cmd) set maxrepeats 5 maxrepeats - was: 3 now: 5 @@ -132,37 +117,20 @@ say goodnight, Gracie -------------------------[4] say -ps --repeat=5 goodnight, Gracie -------------------------[5] -set --------------------------[6] set maxrepeats 5 --------------------------[7] +-------------------------[6] say -ps --repeat=5 goodnight, Gracie (Cmd) run 4 -say -ps --repeat=5 goodnight, Gracie OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY OODNIGHT, GRACIEGAY -(Cmd) orate Four score and -> seven releases ago -> our BDFL -> -Four score and -seven releases ago -our BDFL -(Cmd) & look, a shortcut! -look, a shortcut! -(Cmd) say put this in a file > myfile.txt -(Cmd) say < myfile.txt -put this in a file (Cmd) set prompt "---> " prompt - was: (Cmd) now: ---> ----> say goodbye -goodbye """ for cmd, expected in _get_transcript_blocks(transcript): - out = run_cmd(app, 'help') + out = run_cmd(app, cmd) assert out == expected |