mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
commit
e1ca120eb8
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user