1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 20:52:32 +01:00

#N/A: Ensure that thefuck successfully installed in functional tests

This commit is contained in:
Vladimir Iakovlev
2016-08-13 14:50:21 +03:00
parent 087584a1e0
commit b2a5009116
4 changed files with 8 additions and 4 deletions

View File

@@ -20,9 +20,10 @@ containers = (('thefuck/ubuntu-python3-fish',
@pytest.fixture(params=containers)
def proc(request, spawnu):
def proc(request, spawnu, TIMEOUT):
proc = spawnu(*request.param)
proc.sendline(u"pip install /src")
assert proc.expect([TIMEOUT, u'Successfully installed'])
proc.sendline(u'thefuck --alias > ~/.config/fish/config.fish')
proc.sendline(u'fish')
return proc