1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-07-30 02:39:48 +01:00

Merge pull request from Sclarki/patch-1

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

@@ -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)

@@ -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):