1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +00:00

Merge pull request #137 from Sclarki/patch-1

Added dpkg rule
This commit is contained in:
Vladimir Iakovlev 2015-04-28 20:32:41 +02:00
commit e1ca120eb8
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ from tests.utils import Command
@pytest.mark.parametrize('stderr', ['Permission denied', @pytest.mark.parametrize('stderr', ['Permission denied',
'permission denied', 'permission denied',
"npm ERR! Error: EACCES, unlink"]) "npm ERR! Error: EACCES, unlink",
'requested operation requires superuser privilege'])
def test_match(stderr): def test_match(stderr):
assert match(Command(stderr=stderr), None) assert match(Command(stderr=stderr), None)

View File

@ -7,7 +7,8 @@ patterns = ['permission denied',
'root privilege', 'root privilege',
'This command has to be run under the root user.', 'This command has to be run under the root user.',
'This operation requires root.', 'This operation requires root.',
'You need to be root to perform this command.'] 'You need to be root to perform this command.',
'requested operation requires superuser privilege']
def match(command, settings): def match(command, settings):