mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
Add dnf history
error for the sudo rule
$ dnf history You don't have access to the history DB.
This commit is contained in:
parent
66e2ec7e3f
commit
6d39b78824
@ -11,6 +11,7 @@ from tests.utils import Command
|
|||||||
('need to be root', ''),
|
('need to be root', ''),
|
||||||
('need root', ''),
|
('need root', ''),
|
||||||
('must be root', ''),
|
('must be root', ''),
|
||||||
|
('You don\'t have access to the history DB.', ''),
|
||||||
('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")])
|
('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")])
|
||||||
def test_match(stderr, stdout):
|
def test_match(stderr, stdout):
|
||||||
assert match(Command(stderr=stderr, stdout=stdout), None)
|
assert match(Command(stderr=stderr, stdout=stdout), None)
|
||||||
|
@ -14,6 +14,7 @@ patterns = ['permission denied',
|
|||||||
'need to be root',
|
'need to be root',
|
||||||
'need root',
|
'need root',
|
||||||
'only root can do that',
|
'only root can do that',
|
||||||
|
'You don\'t have access to the history DB.',
|
||||||
'authentication is required']
|
'authentication is required']
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user