From 16d68be94965c9b09dc1859c245ddbea32cf0f75 Mon Sep 17 00:00:00 2001 From: Andre Hora Date: Tue, 31 Jan 2023 15:45:34 -0300 Subject: [PATCH] minor improvement to test_brew_unknown_command --- tests/rules/test_brew_unknown_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rules/test_brew_unknown_command.py b/tests/rules/test_brew_unknown_command.py index a1ad6f9d..c9fdb392 100644 --- a/tests/rules/test_brew_unknown_command.py +++ b/tests/rules/test_brew_unknown_command.py @@ -14,8 +14,9 @@ def brew_unknown_cmd2(): return '''Error: Unknown command: instaa''' -def test_match(brew_unknown_cmd): +def test_match(brew_unknown_cmd, brew_unknown_cmd2): assert match(Command('brew inst', brew_unknown_cmd)) + assert match(Command('brew instaa', brew_unknown_cmd2)) for command in _brew_commands(): assert not match(Command('brew ' + command, ''))