mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 03:56:01 +00:00
#1290: Update output for brew_update_formula
* fix: brew_update_formula change output string * fix: regex removed, test: backtick added * Update tests/rules/test_brew_update_formula.py * Update thefuck/rules/brew_update_formula.py Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
This commit is contained in:
parent
5198b34f24
commit
f1b7d879bd
@ -4,7 +4,7 @@ from thefuck.rules.brew_update_formula import get_new_command, match
|
||||
|
||||
|
||||
output = ("Error: This command updates brew itself, and does not take formula"
|
||||
" names.\nUse 'brew upgrade thefuck'.")
|
||||
" names.\nUse `brew upgrade thefuck`.")
|
||||
|
||||
|
||||
def test_match():
|
||||
|
@ -5,7 +5,7 @@ from thefuck.utils import for_app
|
||||
def match(command):
|
||||
return ('update' in command.script
|
||||
and "Error: This command updates brew itself" in command.output
|
||||
and "Use 'brew upgrade" in command.output)
|
||||
and "Use `brew upgrade" in command.output)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
|
Loading…
Reference in New Issue
Block a user