diff options
author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 16:28:47 -0400 |
---|---|---|
committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 16:28:47 -0400 |
commit | 1931ce6013fff1804cf1658759eff80a64fb131a (patch) | |
tree | 24a81d52705e4054a77e070d4e26a962c3f77b9d /tests/test_cmd2.py | |
parent | 6ea7fc0587ba1645ee4bdd4c610480e55c4a7d96 (diff) | |
download | cmd2-git-1931ce6013fff1804cf1658759eff80a64fb131a.tar.gz |
Simplified implementation of do__relative_load
Also removed default argument for _relative_load and load
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index ba83e426..92fdaa14 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -283,18 +283,13 @@ load {} assert out == expected -def test_base_load_default_file(base_app, capsys): - # TODO: Make sure to remove the 'command.txt' file in case it exists - +def test_base_load_with_empty_args(base_app, capsys): # The way the load command works, we can't directly capture its stdout or stderr run_cmd(base_app, 'load') out, err = capsys.readouterr() # The default file 'command.txt' doesn't exist, so we should get an error message - expected = normalize("""ERROR: Problem accessing script from command.txt: -[Errno 2] No such file or directory: 'command.txt' -To enable full traceback, run the following command: 'set debug true' -""") + expected = normalize("""ERROR: load command requires a file path:\n""") assert normalize(str(err)) == expected |