mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
Make "arrows" tests less dependent on environment
This commit is contained in:
parent
22eac045c8
commit
5cfd493d05
@ -47,9 +47,11 @@ def select_command_with_arrows(proc, TIMEOUT):
|
|||||||
assert proc.expect([TIMEOUT, u'git help'])
|
assert proc.expect([TIMEOUT, u'git help'])
|
||||||
proc.send('\033[A')
|
proc.send('\033[A')
|
||||||
assert proc.expect([TIMEOUT, u'git push'])
|
assert proc.expect([TIMEOUT, u'git push'])
|
||||||
|
proc.send('\033[B')
|
||||||
|
assert proc.expect([TIMEOUT, u'git help'])
|
||||||
proc.send('\n')
|
proc.send('\n')
|
||||||
|
|
||||||
assert proc.expect([TIMEOUT, u'Not a git repository'])
|
assert proc.expect([TIMEOUT, u'usage'])
|
||||||
|
|
||||||
|
|
||||||
def refuse_with_confirmation(proc, TIMEOUT):
|
def refuse_with_confirmation(proc, TIMEOUT):
|
||||||
|
@ -40,7 +40,7 @@ def test_with_confirmation(proc, TIMEOUT):
|
|||||||
@pytest.mark.once_without_docker
|
@pytest.mark.once_without_docker
|
||||||
def test_select_command_with_arrows(proc, TIMEOUT):
|
def test_select_command_with_arrows(proc, TIMEOUT):
|
||||||
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
|
@pytest.mark.functional
|
||||||
|
@ -44,7 +44,7 @@ def test_with_confirmation(proc, TIMEOUT):
|
|||||||
@pytest.mark.once_without_docker
|
@pytest.mark.once_without_docker
|
||||||
def test_select_command_with_arrows(proc, TIMEOUT):
|
def test_select_command_with_arrows(proc, TIMEOUT):
|
||||||
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
|
@pytest.mark.functional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user