From f1b7d879bdfc712c14de1e40f00c52ed4a0437dd Mon Sep 17 00:00:00 2001 From: Peter <55065107+pyrrolizin@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:28:38 +0200 Subject: [PATCH] #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 --- tests/rules/test_brew_update_formula.py | 2 +- thefuck/rules/brew_update_formula.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rules/test_brew_update_formula.py b/tests/rules/test_brew_update_formula.py index 5cec48bd..a35e1d9a 100644 --- a/tests/rules/test_brew_update_formula.py +++ b/tests/rules/test_brew_update_formula.py @@ -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(): diff --git a/thefuck/rules/brew_update_formula.py b/thefuck/rules/brew_update_formula.py index 172df6a7..4f2264aa 100644 --- a/thefuck/rules/brew_update_formula.py +++ b/thefuck/rules/brew_update_formula.py @@ -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):