mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 12:42:31 +01:00
Make "arrows" tests less dependent on environment
This commit is contained in:
@@ -47,9 +47,11 @@ def select_command_with_arrows(proc, TIMEOUT):
|
||||
assert proc.expect([TIMEOUT, u'git help'])
|
||||
proc.send('\033[A')
|
||||
assert proc.expect([TIMEOUT, u'git push'])
|
||||
proc.send('\033[B')
|
||||
assert proc.expect([TIMEOUT, u'git help'])
|
||||
proc.send('\n')
|
||||
|
||||
assert proc.expect([TIMEOUT, u'Not a git repository'])
|
||||
assert proc.expect([TIMEOUT, u'usage'])
|
||||
|
||||
|
||||
def refuse_with_confirmation(proc, TIMEOUT):
|
||||
|
Reference in New Issue
Block a user