summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index aa9a76f2..b89f96d4 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -231,13 +231,15 @@ load {}
def test_base_load_default_file(base_app, capsys):
+ # TODO: Make sure to remove the 'command.txt' file in case it exists
+
# 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.txt''
+[Errno 2] No such file or directory: 'command.txt.txt'
To enable full traceback, run the following command: 'set debug true'
""")
assert normalize(str(err)) == expected