diff --git a/tests/rules/test_goenv_no_such_command.py b/tests/rules/test_goenv_no_such_command.py index bc3f6492..64c52006 100644 --- a/tests/rules/test_goenv_no_such_command.py +++ b/tests/rules/test_goenv_no_such_command.py @@ -9,20 +9,6 @@ def output(goenv_cmd): return "goenv: no such command '{}'".format(goenv_cmd) -@pytest.fixture(autouse=True) -def Popen(mocker): - mock = mocker.patch('thefuck.rules.goenv_no_such_command.Popen') - mock.return_value.stdout.readlines.return_value = ( - b'--version\nactivate\ncommands\ncompletions\ndeactivate\ndoctor_\n' - b'exec\nglobal\nhelp\nhooks\ninit\ninstall\ninstaller\nlocal\noffline-installer_\n' - b'prefix\nrealpath.dylib\nrehash\nroot\nshell\nshims\nuninstall\nupdate_\n' - b'version\nversion-file\nversion-file-read\nversion-file-write\nversion-name_\n' - b'version-origin\nversions\nvirtualenv\nvirtualenv-delete_\n' - b'virtualenv-init\nvirtualenv-prefix\nvirtualenvs\nwhence\nwhich_\n' - ).split() - return mock - - @pytest.mark.parametrize('script, goenv_cmd', [ ('goenv globe', 'globe'), ('goenv intall 1.4.0', 'intall'), diff --git a/tests/rules/test_nodenv_no_such_command.py b/tests/rules/test_nodenv_no_such_command.py index 7cae53f9..7d95d925 100644 --- a/tests/rules/test_nodenv_no_such_command.py +++ b/tests/rules/test_nodenv_no_such_command.py @@ -9,21 +9,6 @@ def output(nodenv_cmd): return "nodenv: no such command `{}'".format(nodenv_cmd) -@pytest.fixture(autouse=True) -def Popen(mocker): - mock = mocker.patch('thefuck.rules.nodenv_no_such_command.Popen') - mock.return_value.stdout.readlines.return_value = ( - b'--version\nactivate\ncommands\ncompletions\ndeactivate\nexec_\n' - b'global\nhelp\nhooks\ninit\ninstall\nlocal\nprefix_\n' - b'realpath.dylib\nrehash\nroot\nshell\nshims\nuninstall\nversion_\n' - b'version-file\nversion-file-read\nversion-file-write\nversion-name_\n' - b'version-origin\nversions\nvirtualenv\nvirtualenv-delete_\n' - b'virtualenv-init\nvirtualenv-prefix\nvirtualenvs_\n' - b'virtualenvwrapper\nvirtualenvwrapper_lazy\nwhence\nwhich_\n' - ).split() - return mock - - @pytest.mark.parametrize('script, nodenv_cmd', [ ('nodenv globe', 'globe'), ('nodenv intall 3.8.0', 'intall'), diff --git a/tests/rules/test_pyenv_no_such_command.py b/tests/rules/test_pyenv_no_such_command.py index 298620f7..8d73a5ca 100644 --- a/tests/rules/test_pyenv_no_such_command.py +++ b/tests/rules/test_pyenv_no_such_command.py @@ -9,21 +9,6 @@ def output(pyenv_cmd): return "pyenv: no such command `{}'".format(pyenv_cmd) -@pytest.fixture(autouse=True) -def Popen(mocker): - mock = mocker.patch('thefuck.rules.pyenv_no_such_command.Popen') - mock.return_value.stdout.readlines.return_value = ( - b'--version\nactivate\ncommands\ncompletions\ndeactivate\nexec_\n' - b'global\nhelp\nhooks\ninit\ninstall\nlocal\nprefix_\n' - b'realpath.dylib\nrehash\nroot\nshell\nshims\nuninstall\nversion_\n' - b'version-file\nversion-file-read\nversion-file-write\nversion-name_\n' - b'version-origin\nversions\nvirtualenv\nvirtualenv-delete_\n' - b'virtualenv-init\nvirtualenv-prefix\nvirtualenvs_\n' - b'virtualenvwrapper\nvirtualenvwrapper_lazy\nwhence\nwhich_\n' - ).split() - return mock - - @pytest.mark.parametrize('script, pyenv_cmd', [ ('pyenv globe', 'globe'), ('pyenv intall 3.8.0', 'intall'), diff --git a/tests/rules/test_rbenv_no_such_command.py b/tests/rules/test_rbenv_no_such_command.py index b9bf248b..05685380 100644 --- a/tests/rules/test_rbenv_no_such_command.py +++ b/tests/rules/test_rbenv_no_such_command.py @@ -9,21 +9,6 @@ def output(rbenv_cmd): return "rbenv: no such command `{}'".format(rbenv_cmd) -@pytest.fixture(autouse=True) -def Popen(mocker): - mock = mocker.patch('thefuck.rules.rbenv_no_such_command.Popen') - mock.return_value.stdout.readlines.return_value = ( - b'--version\nactivate\ncommands\ncompletions\ndeactivate\nexec_\n' - b'global\nhelp\nhooks\ninit\ninstall\nlocal\nprefix_\n' - b'realpath.dylib\nrehash\nroot\nshell\nshims\nuninstall\nversion_\n' - b'version-file\nversion-file-read\nversion-file-write\nversion-name_\n' - b'version-origin\nversions\nvirtualenv\nvirtualenv-delete_\n' - b'virtualenv-init\nvirtualenv-prefix\nvirtualenvs_\n' - b'virtualenvwrapper\nvirtualenvwrapper_lazy\nwhence\nwhich_\n' - ).split() - return mock - - @pytest.mark.parametrize('script, rbenv_cmd', [ ('rbenv globe', 'globe'), ('rbenv intall 3.8.0', 'intall'),