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

#298 Fix tests with BARE

This commit is contained in:
nvbn
2015-07-31 15:04:06 +03:00
parent 214acf56c5
commit 8632a29edc
3 changed files with 2 additions and 4 deletions

View File

@@ -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'])