mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 04:18:55 +00:00
Fix tests
This commit is contained in:
parent
e7b377a310
commit
282217fd02
@ -74,7 +74,7 @@ def test_get_command():
|
||||
|
||||
def test_get_matched_rule():
|
||||
rules = [main.Rule(lambda x, _: x.script == 'cd ..', None),
|
||||
main.Rule(lambda _, _: False, None)]
|
||||
main.Rule(lambda *_: False, None)]
|
||||
assert main.get_matched_rule(main.Command('ls', '', ''),
|
||||
rules, None) is None
|
||||
assert main.get_matched_rule(main.Command('cd ..', '', ''),
|
||||
|
Loading…
x
Reference in New Issue
Block a user