summaryrefslogtreecommitdiff
path: root/tests/test_bashcompletion.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-30 22:26:14 -0700
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-30 22:26:14 -0700
commitc404cce4934d96b7a9cb4514ad69edde892ffb1d (patch)
treee0d0d81139a84df8a1c8b22e0c9d94bc7e21b842 /tests/test_bashcompletion.py
parent44fc8d13a66828527a4c9bae711d5242b29e25ab (diff)
downloadcmd2-git-c404cce4934d96b7a9cb4514ad69edde892ffb1d.tar.gz
Skip argcomplete-related tests on Windows since that module isn't available on Windows
Diffstat (limited to 'tests/test_bashcompletion.py')
-rw-r--r--tests/test_bashcompletion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_bashcompletion.py b/tests/test_bashcompletion.py
index cf916abe..e2c28fce 100644
--- a/tests/test_bashcompletion.py
+++ b/tests/test_bashcompletion.py
@@ -11,12 +11,11 @@ import shlex
import sys
from typing import List
-from cmd2.argcomplete_bridge import tokens_for_completion
from cmd2.argparse_completer import ACArgumentParser, AutoCompleter
try:
- from cmd2.argcomplete_bridge import CompletionFinder
+ from cmd2.argcomplete_bridge import CompletionFinder, tokens_for_completion
skip_reason1 = False
skip_reason = ''
except ImportError:
@@ -233,7 +232,7 @@ Hint:
assert out == exp_out
assert err == exp_err
-
+@pytest.mark.skipif(skip_reason1, reason=skip_reason)
def test_argcomplete_tokens_for_completion_simple():
line = 'this is "a test"'
endidx = len(line)
@@ -244,6 +243,7 @@ def test_argcomplete_tokens_for_completion_simple():
assert begin_idx == line.rfind("is ") + len("is ")
assert end_idx == end_idx
+@pytest.mark.skipif(skip_reason1, reason=skip_reason)
def test_argcomplete_tokens_for_completion_unclosed_quotee_exception():
line = 'this is "a test'
endidx = len(line)