mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-19 03:32:31 +01:00
#298 Suggest more than one result in *_no_command rules
This commit is contained in:
@@ -22,7 +22,7 @@ def test_match(brew_unknown_cmd):
|
||||
|
||||
def test_get_new_command(brew_unknown_cmd, brew_unknown_cmd2):
|
||||
assert get_new_command(Command('brew inst', stderr=brew_unknown_cmd),
|
||||
None) == 'brew list'
|
||||
None) == ['brew list', 'brew install', 'brew uninstall']
|
||||
|
||||
assert get_new_command(Command('brew instaa', stderr=brew_unknown_cmd2),
|
||||
None) == 'brew install'
|
||||
None) == ['brew install', 'brew uninstall', 'brew list']
|
||||
|
Reference in New Issue
Block a user