mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Fix history tests in travis-ci?
This commit is contained in:
parent
fbce86b92a
commit
cd1468489f
@ -22,6 +22,7 @@ RUN pip2 install -U pip setuptools
|
|||||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_with_confirmation(tag, dockerfile):
|
def test_with_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'bash') as proc:
|
with spawn(tag, dockerfile, u'bash') as proc:
|
||||||
|
proc.sendline(u"export PS1='$ '")
|
||||||
proc.sendline(u'eval $(thefuck-alias)')
|
proc.sendline(u'eval $(thefuck-alias)')
|
||||||
proc.sendline(u'touch $HISTFILE')
|
proc.sendline(u'touch $HISTFILE')
|
||||||
with_confirmation(proc)
|
with_confirmation(proc)
|
||||||
@ -32,6 +33,7 @@ def test_with_confirmation(tag, dockerfile):
|
|||||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_refuse_with_confirmation(tag, dockerfile):
|
def test_refuse_with_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'bash') as proc:
|
with spawn(tag, dockerfile, u'bash') as proc:
|
||||||
|
proc.sendline(u"export PS1='$ '")
|
||||||
proc.sendline(u'eval $(thefuck-alias)')
|
proc.sendline(u'eval $(thefuck-alias)')
|
||||||
proc.sendline(u'touch $HISTFILE')
|
proc.sendline(u'touch $HISTFILE')
|
||||||
refuse_with_confirmation(proc)
|
refuse_with_confirmation(proc)
|
||||||
@ -42,6 +44,7 @@ def test_refuse_with_confirmation(tag, dockerfile):
|
|||||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_without_confirmation(tag, dockerfile):
|
def test_without_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'bash') as proc:
|
with spawn(tag, dockerfile, u'bash') as proc:
|
||||||
|
proc.sendline(u"export PS1='$ '")
|
||||||
proc.sendline(u'eval $(thefuck-alias)')
|
proc.sendline(u'eval $(thefuck-alias)')
|
||||||
proc.sendline(u'touch $HISTFILE')
|
proc.sendline(u'touch $HISTFILE')
|
||||||
without_confirmation(proc)
|
without_confirmation(proc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user