diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-15 10:31:42 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-06-15 10:31:42 -0400 |
commit | 79c54b473126d44f0da146600a352660d4cb7c64 (patch) | |
tree | 1628b99113f8c49e32bf0903e87617b8089f3f39 /tests | |
parent | ea1716ad0c43ce0c2c354836dbc36e4ae419afb6 (diff) | |
download | cmd2-git-79c54b473126d44f0da146600a352660d4cb7c64.tar.gz |
Updated various documentation and tests to not use load
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_completion.py | 2 | ||||
-rw-r--r-- | tests/test_transcript.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index b70de7bc..91519b0a 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -537,7 +537,7 @@ def test_basic_completion_nomatch(cmd2_app): def test_delimiter_completion(cmd2_app): text = '/home/' - line = 'load {}'.format(text) + line = 'run_script {}'.format(text) endidx = len(line) begidx = endidx - len(text) diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 5dd39e1b..909a6a5c 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -190,7 +190,7 @@ this is a \/multiline\/ command assert transcript == expected -def test_load_record_transcript(base_app, request): +def test_run_script_record_transcript(base_app, request): test_dir = os.path.dirname(request.module.__file__) filename = os.path.join(test_dir, 'scripts', 'help.txt') @@ -201,8 +201,8 @@ def test_load_record_transcript(base_app, request): fd, transcript_fname = tempfile.mkstemp(prefix='', suffix='.trn') os.close(fd) - # Run the load command with the -r option to generate a transcript - run_cmd(base_app, 'load {} -t {}'.format(filename, transcript_fname)) + # Execute the run_script command with the -t option to generate a transcript + run_cmd(base_app, 'run_script {} -t {}'.format(filename, transcript_fname)) assert base_app._script_dir == [] assert base_app._current_script_dir is None |