1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-02 10:02:33 +01:00

Added support for "not installed" message in apt_get

This commit is contained in:
Julian Zimmermann
2017-01-29 00:15:55 +01:00
parent a015c0f5e2
commit ac7b633e28
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ from tests.utils import Command
(Command(script='vim', stderr='vim: command not found'),
[('vim', 'main'), ('vim-tiny', 'main')]),
(Command(script='sudo vim', stderr='vim: command not found'),
[('vim', 'main'), ('vim-tiny', 'main')]),
(Command(script='vim', stderr="The program 'vim' is currently not installed. You can install it by typing: sudo apt install vim"),
[('vim', 'main'), ('vim-tiny', 'main')])])
def test_match(mocker, command, packages):
mocker.patch('thefuck.rules.apt_get.which', return_value=None)