diff options
author | Jared Crapo <jared@kotfu.net> | 2017-08-20 12:52:23 -0600 |
---|---|---|
committer | Jared Crapo <jared@kotfu.net> | 2017-08-20 12:52:23 -0600 |
commit | 046210e3ae43010b0da638682ae6a1c7ae1fffe6 (patch) | |
tree | df79d5af80b9c8d8f6da0a78e797bada9564bcd5 | |
parent | 7fc847b3b5c52ff1f1ca632112bb9543e803940e (diff) | |
download | cmd2-git-046210e3ae43010b0da638682ae6a1c7ae1fffe6.tar.gz |
rename transcript files
-rw-r--r-- | tests/test_transcript.py | 8 | ||||
-rw-r--r-- | tests/transcripts/from_cmdloop.txt (renamed from tests/transcripts/transcript.txt) | 0 | ||||
-rw-r--r-- | tests/transcripts/multiline.txt (renamed from tests/transcripts/multiline_transcript.txt) | 0 | ||||
-rw-r--r-- | tests/transcripts/regex_set.txt (renamed from tests/transcripts/transcript_regex.txt) | 0 |
4 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] diff --git a/tests/transcripts/transcript.txt b/tests/transcripts/from_cmdloop.txt index e95b9b39..e95b9b39 100644 --- a/tests/transcripts/transcript.txt +++ b/tests/transcripts/from_cmdloop.txt diff --git a/tests/transcripts/multiline_transcript.txt b/tests/transcripts/multiline.txt index 5fe9122c..5fe9122c 100644 --- a/tests/transcripts/multiline_transcript.txt +++ b/tests/transcripts/multiline.txt diff --git a/tests/transcripts/transcript_regex.txt b/tests/transcripts/regex_set.txt index a310224b..a310224b 100644 --- a/tests/transcripts/transcript_regex.txt +++ b/tests/transcripts/regex_set.txt |