mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-11 14:23:57 +01:00
⚠️ Remove settings
param from rules match
, get_new_command
and side_effect
This commit is contained in:
@@ -13,8 +13,8 @@ from tests.utils import Command
|
||||
(False, 'sudo ls', 'ls', False),
|
||||
(False, 'ls', 'ls', False)])
|
||||
def test_sudo_support(return_value, command, called, result):
|
||||
def fn(command, settings):
|
||||
def fn(command):
|
||||
assert command == Command(called)
|
||||
return return_value
|
||||
|
||||
assert sudo_support(fn)(Command(command), None) == result
|
||||
assert sudo_support(fn)(Command(command)) == result
|
||||
|
Reference in New Issue
Block a user