mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-11 14:23:57 +01:00
#1248: Reuse Docker images in functional tests
This commit is contained in:
@@ -4,12 +4,12 @@ from tests.functional.plots import with_confirmation, without_confirmation, \
|
||||
select_command_with_arrows, how_to_configure
|
||||
|
||||
|
||||
python_3 = (u'thefuck/python3-bash',
|
||||
u'FROM python:3',
|
||||
python_3 = (u'thefuck/python3',
|
||||
u'',
|
||||
u'sh')
|
||||
|
||||
python_2 = (u'thefuck/python2-bash',
|
||||
u'FROM python:2',
|
||||
python_2 = (u'thefuck/python2',
|
||||
u'',
|
||||
u'sh')
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@ echo "instant mode ready: $THEFUCK_INSTANT_MODE"
|
||||
def proc(request, spawnu, TIMEOUT):
|
||||
container, instant_mode = request.param
|
||||
proc = spawnu(*container)
|
||||
proc.sendline(u"pip install /src")
|
||||
assert proc.expect([TIMEOUT, u'Successfully installed'])
|
||||
proc.sendline(init_bashrc.format(
|
||||
u'--enable-experimental-instant-mode' if instant_mode else ''))
|
||||
proc.sendline(u"bash")
|
||||
|
Reference in New Issue
Block a user