diff options
| author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 17:57:23 -0400 |
|---|---|---|
| committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 17:57:23 -0400 |
| commit | 9efa8ee8d0e14d494eb954cd356d17832573deee (patch) | |
| tree | 057bc6f5fbb101ce3b4d0c5b68edebd8735eaae1 /tests/test_completion.py | |
| parent | 38f509964141530a246effb87c0d3ed30e6918b1 (diff) | |
| download | cmd2-git-9efa8ee8d0e14d494eb954cd356d17832573deee.tar.gz | |
Completely removed use of self.default_file_name
Load and relative load now require a file path
Edit will use a temporary file by default and delete it when done
Save will use a temporary file by default and inform the user what it is
Also changed the default value for autorun_on_edit to False so that it can safely be used as an actual file editor.
Diffstat (limited to 'tests/test_completion.py')
| -rw-r--r-- | tests/test_completion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 74cc3d57..220d6e26 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -150,7 +150,7 @@ def test_path_completion_multiple(cmd2_app, request): endidx = len(line) begidx = endidx - len(text) - assert cmd2_app.path_complete(text, line, begidx, endidx) == ['script.py', 'script.txt'] + assert cmd2_app.path_complete(text, line, begidx, endidx) == ['script.py', 'script.txt', 'scripts/'] def test_path_completion_nomatch(cmd2_app, request): test_dir = os.path.dirname(request.module.__file__) |
