diff --git a/tests/functional/plots.py b/tests/functional/plots.py index 87d49aa5..1b4d06aa 100644 --- a/tests/functional/plots.py +++ b/tests/functional/plots.py @@ -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): diff --git a/tests/functional/test_bash.py b/tests/functional/test_bash.py index 403c64aa..a8b69ffe 100644 --- a/tests/functional/test_bash.py +++ b/tests/functional/test_bash.py @@ -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 diff --git a/tests/functional/test_zsh.py b/tests/functional/test_zsh.py index 47fe82bb..1bcb77fb 100644 --- a/tests/functional/test_zsh.py +++ b/tests/functional/test_zsh.py @@ -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