diff options
author | Eric Lin <anselor@gmail.com> | 2018-05-04 14:14:15 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-05-04 14:14:15 -0400 |
commit | efc6ab8e9604aa321168f62c98c7470138621399 (patch) | |
tree | ef8f0405bca926a86169c1ff1a7b3e7a209f6031 /tests/test_bashcompletion.py | |
parent | 6efe7217a58ff1bfe54bea79a7aa35f08a114b5f (diff) | |
download | cmd2-git-efc6ab8e9604aa321168f62c98c7470138621399.tar.gz |
Added argcomplete to unit test environment. Added exclusion for Windows
Diffstat (limited to 'tests/test_bashcompletion.py')
-rw-r--r-- | tests/test_bashcompletion.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_bashcompletion.py b/tests/test_bashcompletion.py index de1d99fb..da897bf7 100644 --- a/tests/test_bashcompletion.py +++ b/tests/test_bashcompletion.py @@ -11,8 +11,11 @@ import sys from typing import List from cmd2.argparse_completer import ACArgumentParser, AutoCompleter -from cmd2.argcomplete_bridge import CompletionFinder - +try: + from cmd2.argcomplete_bridge import CompletionFinder +except: + # Don't test if argcomplete isn't present (likely on Windows) + pytest.skip() actors = ['Mark Hamill', 'Harrison Ford', 'Carrie Fisher', 'Alec Guinness', 'Peter Mayhew', 'Anthony Daniels', 'Adam Driver', 'Daisy Ridley', 'John Boyega', 'Oscar Isaac', |