mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
#298 Fix tests with BARE
This commit is contained in:
parent
214acf56c5
commit
8632a29edc
@ -26,14 +26,12 @@ def with_confirmation(proc):
|
||||
|
||||
def history_changed(proc, to):
|
||||
"""Ensures that history changed."""
|
||||
sleep(2)
|
||||
proc.send('\033[A')
|
||||
assert proc.expect([TIMEOUT, to])
|
||||
|
||||
|
||||
def history_not_changed(proc):
|
||||
"""Ensures that history not changed."""
|
||||
sleep(2)
|
||||
proc.send('\033[A')
|
||||
assert proc.expect([TIMEOUT, u'fuck'])
|
||||
|
||||
|
@ -25,7 +25,7 @@ def proc(request):
|
||||
proc = spawn(request, tag, dockerfile, u'bash')
|
||||
proc.sendline(u"export PS1='$ '")
|
||||
proc.sendline(u'eval $(thefuck-alias)')
|
||||
proc.sendline(u'touch $HISTFILE')
|
||||
proc.sendline(u'echo > $HISTFILE')
|
||||
return proc
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@ def proc(request):
|
||||
proc = spawn(request, tag, dockerfile, u'zsh')
|
||||
proc.sendline(u'eval $(thefuck-alias)')
|
||||
proc.sendline(u'export HISTFILE=~/.zsh_history')
|
||||
proc.sendline(u'touch $HISTFILE')
|
||||
proc.sendline(u'echo > $HISTFILE')
|
||||
return proc
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user