mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Merge pull request #299 from evverx/dnf-history
Add `dnf history` error for the sudo rule
This commit is contained in:
		| @@ -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'] | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user