mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-18 19:22:32 +01:00
#298 Suggest more than one result in *_no_command rules
This commit is contained in:
@@ -122,8 +122,8 @@ def test_not_match(script, stderr):
|
||||
|
||||
@pytest.mark.usefixtures('docker_help')
|
||||
@pytest.mark.parametrize('wrong, fixed', [
|
||||
('pes', 'ps'),
|
||||
('tags', 'tag')])
|
||||
('pes', ['ps', 'push', 'pause']),
|
||||
('tags', ['tag', 'stats', 'images'])])
|
||||
def test_get_new_command(wrong, fixed):
|
||||
command = Command('docker {}'.format(wrong), stderr=stderr(wrong))
|
||||
assert get_new_command(command, None) == 'docker {}'.format(fixed)
|
||||
assert get_new_command(command, None) == ['docker {}'.format(x) for x in fixed]
|
||||
|
Reference in New Issue
Block a user