Skip to content

Commit bcf4091

Browse files
committed
Going back to all parameterized bash completion tests disabled on TravisCI
1 parent 10e7036 commit bcf4091

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

tests/test_bashcompletion.py

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -135,43 +135,18 @@ def test_invalid_ifs(parser1, mock):
135135
completer(parser1, AutoCompleter(parser1), exit_method=sys.exit)
136136

137137

138-
# noinspection PyShadowingNames
139-
@pytest.mark.skipif(skip_no_argcomplete or skip_windows or skip_mac, reason=skip_reason)
140-
@pytest.mark.parametrize('comp_line, exp_out, exp_err', [
141-
('media mo', 'movies', ''),
142-
])
143-
def test_commands_travis(parser1, capfd, mock, comp_line, exp_out, exp_err):
144-
mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
145-
'_ARGCOMPLETE_IFS': '\013',
146-
'COMP_TYPE': '63',
147-
'COMP_LINE': comp_line,
148-
'COMP_POINT': str(len(comp_line))})
149-
150-
mock.patch.object(os, 'fdopen', my_fdopen)
151-
152-
with pytest.raises(SystemExit):
153-
completer = CompletionFinder()
154-
155-
choices = {'actor': query_actors, # function
156-
}
157-
autocompleter = AutoCompleter(parser1, arg_choices=choices)
158-
completer(parser1, autocompleter, exit_method=sys.exit)
159-
160-
out, err = capfd.readouterr()
161-
assert out == exp_out
162-
assert err == exp_err
163-
164138
# noinspection PyShadowingNames
165139
@pytest.mark.skipif(skip or skip_mac, reason=skip_reason)
166140
@pytest.mark.parametrize('comp_line, exp_out, exp_err', [
167141
('media ', 'movies\013shows', ''),
142+
('media mo', 'movies', ''),
168143
('media movies list -a "J', '"John Boyega"\013"Jake Lloyd"', ''),
169144
('media movies list ', '', ''),
170145
('media movies add ', '\013\013 ', '''
171146
Hint:
172147
TITLE Movie Title'''),
173148
])
174-
def test_commands_local(parser1, capfd, mock, comp_line, exp_out, exp_err):
149+
def test_commands(parser1, capfd, mock, comp_line, exp_out, exp_err):
175150
mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
176151
'_ARGCOMPLETE_IFS': '\013',
177152
'COMP_TYPE': '63',

0 commit comments

Comments
 (0)