diff options
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index bf0005ea..12bf5297 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -240,7 +240,7 @@ def test_transcript_from_cmdloop(request, capsys): # Get location of the transcript test_dir = os.path.dirname(request.module.__file__) - transcript_file = os.path.join(test_dir, 'transcripts/transcript.txt') + transcript_file = os.path.join(test_dir, 'transcripts/from_cmdloop.txt') # Need to patch sys.argv so cmd2 doesn't think it was called with arguments equal to the py.test args testargs = ['prog', '-t', transcript_file] @@ -266,7 +266,7 @@ def test_multiline_command_transcript_with_comments_at_beginning(request, capsys # Get location of the transcript test_dir = os.path.dirname(request.module.__file__) - transcript_file = os.path.join(test_dir, 'transcripts/multiline_transcript.txt') + transcript_file = os.path.join(test_dir, 'transcripts/multiline.txt') # Need to patch sys.argv so cmd2 doesn't think it was called with arguments equal to the py.test args testargs = ['prog', '-t', transcript_file] @@ -293,13 +293,13 @@ def test_invalid_syntax(_cmdline_app, capsys): assert normalize(str(err)) == expected -def test_regex_transcript(request, capsys): +def test_transcript_with_regex_set(request, capsys): # Create a cmd2.Cmd() instance and make sure basic settings are like we want for test app = CmdLineApp() # Get location of the transcript test_dir = os.path.dirname(request.module.__file__) - transcript_file = os.path.join(test_dir, 'transcripts/transcript_regex.txt') + transcript_file = os.path.join(test_dir, 'transcripts/regex_set.txt') # Need to patch sys.argv so cmd2 doesn't think it was called with arguments equal to the py.test args testargs = ['prog', '-t', transcript_file] |