mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-17 18:52:32 +01:00
Hoping this fixes the issue of it not working.
Still new to this project. My problem of it not working (I admit to being at fault) was that I had not added the same rule to the test case.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user