diff options
| author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 18:10:16 -0400 |
|---|---|---|
| committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-28 18:10:16 -0400 |
| commit | d80d47b9a78624b515b732ee3c3f848150cfaa86 (patch) | |
| tree | b9f18e59b182f09b9a1dca397d97b72c11b12258 /tests | |
| parent | 9efa8ee8d0e14d494eb954cd356d17832573deee (diff) | |
| download | cmd2-git-d80d47b9a78624b515b732ee3c3f848150cfaa86.tar.gz | |
Multiple changes
- Disabled TravisCI macOS builds because they are heavily backlogged
- Removed a file which should never have been committed
- Updated Sphinx docs to relect that the default_file_name settable parameter no longer exists
- Fixed comment in a unit test
- Fixed a unit test to use os.path.sep for cross-platform compatibility
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_cmd2.py | 2 | ||||
| -rw-r--r-- | tests/test_completion.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 707699f3..5ca95275 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -288,7 +288,7 @@ def test_base_load_with_empty_args(base_app, capsys): run_cmd(base_app, 'load') out, err = capsys.readouterr() - # The default file 'command.txt' doesn't exist, so we should get an error message + # The load command requires a file path argument, so we should get an error message expected = normalize("""ERROR: load command requires a file path:\n""") assert normalize(str(err)) == expected diff --git a/tests/test_completion.py b/tests/test_completion.py index 220d6e26..a12a4ec2 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', 'scripts/'] + assert cmd2_app.path_complete(text, line, begidx, endidx) == ['script.py', 'script.txt', 'scripts' + os.path.sep] def test_path_completion_nomatch(cmd2_app, request): test_dir = os.path.dirname(request.module.__file__) |
