summaryrefslogtreecommitdiff
path: root/tests/test_bashcompletion.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_bashcompletion.py')
-rw-r--r--tests/test_bashcompletion.py29
1 files changed, 2 insertions, 27 deletions
diff --git a/tests/test_bashcompletion.py b/tests/test_bashcompletion.py
index a630fd3c..47fcdb34 100644
--- a/tests/test_bashcompletion.py
+++ b/tests/test_bashcompletion.py
@@ -136,42 +136,17 @@ def test_invalid_ifs(parser1, mock):
# noinspection PyShadowingNames
-@pytest.mark.skipif(skip_no_argcomplete or skip_windows or skip_mac, reason=skip_reason)
-@pytest.mark.parametrize('comp_line, exp_out, exp_err', [
- ('media mo', 'movies', ''),
-])
-def test_commands_travis(parser1, capfd, mock, comp_line, exp_out, exp_err):
- mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
- '_ARGCOMPLETE_IFS': '\013',
- 'COMP_TYPE': '63',
- 'COMP_LINE': comp_line,
- 'COMP_POINT': str(len(comp_line))})
-
- mock.patch.object(os, 'fdopen', my_fdopen)
-
- with pytest.raises(SystemExit):
- completer = CompletionFinder()
-
- choices = {'actor': query_actors, # function
- }
- autocompleter = AutoCompleter(parser1, arg_choices=choices)
- completer(parser1, autocompleter, exit_method=sys.exit)
-
- out, err = capfd.readouterr()
- assert out == exp_out
- assert err == exp_err
-
-# noinspection PyShadowingNames
@pytest.mark.skipif(skip or skip_mac, reason=skip_reason)
@pytest.mark.parametrize('comp_line, exp_out, exp_err', [
('media ', 'movies\013shows', ''),
+ ('media mo', 'movies', ''),
('media movies list -a "J', '"John Boyega"\013"Jake Lloyd"', ''),
('media movies list ', '', ''),
('media movies add ', '\013\013 ', '''
Hint:
TITLE Movie Title'''),
])
-def test_commands_local(parser1, capfd, mock, comp_line, exp_out, exp_err):
+def test_commands(parser1, capfd, mock, comp_line, exp_out, exp_err):
mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
'_ARGCOMPLETE_IFS': '\013',
'COMP_TYPE': '63',