From 98abbf67034928494dca588fbf996659644b4927 Mon Sep 17 00:00:00 2001 From: Ronan Doolan Date: Sat, 9 May 2020 16:12:38 +0100 Subject: [PATCH] Remove duplicate blank lines --- tests/rules/test_gcloud_cli.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/rules/test_gcloud_cli.py b/tests/rules/test_gcloud_cli.py index bf8a0110..ba430c4d 100644 --- a/tests/rules/test_gcloud_cli.py +++ b/tests/rules/test_gcloud_cli.py @@ -3,12 +3,10 @@ import pytest from thefuck.rules.gcloud_cli import match, get_new_command from thefuck.types import Command - no_suggestions = '''\ ERROR: (gcloud) Command name argument expected. ''' - misspelled_command = '''\ ERROR: (gcloud) Invalid choice: 'comute'. Usage: gcloud [optional flags] @@ -27,7 +25,6 @@ For detailed information on this command and its flags, run: gcloud --help ''' - misspelled_subcommand = '''\ ERROR: (gcloud.compute) Invalid choice: 'instance'. Maybe you meant: @@ -40,20 +37,15 @@ To search the help text of gcloud commands, run: gcloud help -- SEARCH_TERMS ''' - - - @pytest.mark.parametrize('command', [ Command('gcloud comute', misspelled_command), Command('gcloud compute instance list', misspelled_subcommand)]) def test_match(command): assert match(command) - def test_not_match(): assert not match(Command('aws dynamodb invalid', no_suggestions)) - @pytest.mark.parametrize('command, result', [ (Command('gcloud comute', misspelled_command), ['gcloud compute instances list']),