summaryrefslogtreecommitdiff
path: root/tests/test_bashcompletion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-07 11:41:30 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-07 11:41:30 -0500
commitd9dc236a70e9e450951cf8c75318e1eaa9946a60 (patch)
tree23e8f1f6d3fea6af83843fb7b09bfed2ab31cbd3 /tests/test_bashcompletion.py
parent8d001fe579667c2a650c4692b752b7b632c935f2 (diff)
parent3efb3f14630d007572a5cf1246bdb78ee63be089 (diff)
downloadcmd2-git-d9dc236a70e9e450951cf8c75318e1eaa9946a60.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'tests/test_bashcompletion.py')
-rw-r--r--tests/test_bashcompletion.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_bashcompletion.py b/tests/test_bashcompletion.py
index c7201e4b..b99c3fea 100644
--- a/tests/test_bashcompletion.py
+++ b/tests/test_bashcompletion.py
@@ -124,13 +124,13 @@ def my_fdopen(fd, mode, *args):
# noinspection PyShadowingNames
@pytest.mark.skipif(skip_no_argcomplete or skip_windows, reason=skip_reason)
-def test_invalid_ifs(parser1, mock):
+def test_invalid_ifs(parser1, mocker):
completer = CompletionFinder()
- mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
+ mocker.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
'_ARGCOMPLETE_IFS': '\013\013'})
- mock.patch.object(os, 'fdopen', my_fdopen)
+ mocker.patch.object(os, 'fdopen', my_fdopen)
with pytest.raises(SystemExit):
completer(parser1, AutoCompleter(parser1), exit_method=sys.exit)
@@ -178,16 +178,16 @@ def fdopen_fail_8(fd, mode, *args):
# noinspection PyShadowingNames
@pytest.mark.skipif(skip_no_argcomplete or skip_windows, reason=skip_reason)
-def test_fail_alt_stdout(parser1, mock):
+def test_fail_alt_stdout(parser1, mocker):
completer = CompletionFinder()
comp_line = 'media movies list '
- mock.patch.dict(os.environ, {'_ARGCOMPLETE': '1',
+ mocker.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', fdopen_fail_8)
+ mocker.patch.object(os, 'fdopen', fdopen_fail_8)
try:
choices = {'actor': query_actors, # function