mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
commit
e1ca120eb8
@ -5,7 +5,8 @@ from tests.utils import Command
|
||||
|
||||
@pytest.mark.parametrize('stderr', ['Permission denied',
|
||||
'permission denied',
|
||||
"npm ERR! Error: EACCES, unlink"])
|
||||
"npm ERR! Error: EACCES, unlink",
|
||||
'requested operation requires superuser privilege'])
|
||||
def test_match(stderr):
|
||||
assert match(Command(stderr=stderr), None)
|
||||
|
||||
|
@ -7,7 +7,8 @@ patterns = ['permission denied',
|
||||
'root privilege',
|
||||
'This command has to be run under the root user.',
|
||||
'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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user