Make "arrows" tests less dependent on environment

This commit is contained in:
nvbn
2015-09-06 01:24:29 +03:00
parent 22eac045c8
commit 5cfd493d05
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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):
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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