mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
Add test for specific/devenv.py
This commit is contained in:
parent
6a71a52181
commit
55eaf7e013
16
tests/specific/test_devenv.py
Normal file
16
tests/specific/test_devenv.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user