mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 17:48:41 +00:00
17 lines
707 B
Python
17 lines
707 B
Python
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.fixture(autouse=True)
|
||
|
def Popen(mocker):
|
||
|
mock = mocker.patch('thefuck.specific.devenv.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
|