mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-18 11:12:30 +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):
|
||||
|
@@ -40,7 +40,7 @@ def test_with_confirmation(proc, TIMEOUT):
|
||||
@pytest.mark.once_without_docker
|
||||
def test_select_command_with_arrows(proc, TIMEOUT):
|
||||
select_command_with_arrows(proc, TIMEOUT)
|
||||
history_changed(proc, TIMEOUT, u'git push')
|
||||
history_changed(proc, TIMEOUT, u'git help')
|
||||
|
||||
|
||||
@pytest.mark.functional
|
||||
|
@@ -44,7 +44,7 @@ def test_with_confirmation(proc, TIMEOUT):
|
||||
@pytest.mark.once_without_docker
|
||||
def test_select_command_with_arrows(proc, TIMEOUT):
|
||||
select_command_with_arrows(proc, TIMEOUT)
|
||||
history_changed(proc, TIMEOUT, u'git push')
|
||||
history_changed(proc, TIMEOUT, u'git help')
|
||||
|
||||
|
||||
@pytest.mark.functional
|
||||
|
Reference in New Issue
Block a user