mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 04:48:57 +00:00
Merge pull request #329 from JakobGreen/master
Change failed message 'No fuck given' to the more popular 'No fucks g…
This commit is contained in:
commit
e09e5a9683
@ -69,7 +69,7 @@ class TestSelectCommand(object):
|
|||||||
|
|
||||||
def test_without_commands(self, capsys):
|
def test_without_commands(self, capsys):
|
||||||
assert ui.select_command([], Mock(debug=False, no_color=True)) is None
|
assert ui.select_command([], Mock(debug=False, no_color=True)) is None
|
||||||
assert capsys.readouterr() == ('', 'No fuck given\n')
|
assert capsys.readouterr() == ('', 'No fucks given\n')
|
||||||
|
|
||||||
def test_without_confirmation(self, capsys, commands):
|
def test_without_confirmation(self, capsys, commands):
|
||||||
assert ui.select_command(commands,
|
assert ui.select_command(commands,
|
||||||
|
@ -80,7 +80,7 @@ def select_command(corrected_commands, settings):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if not corrected_commands:
|
if not corrected_commands:
|
||||||
logs.failed('No fuck given', settings)
|
logs.failed('No fucks given', settings)
|
||||||
return
|
return
|
||||||
|
|
||||||
selector = CommandSelector(corrected_commands)
|
selector = CommandSelector(corrected_commands)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user