1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-12 22:00:47 +01:00

fixed flake8 issues

This commit is contained in:
Tobi 2019-02-06 22:04:16 +01:00
parent a633fb5366
commit 6ec28073ed
2 changed files with 3 additions and 2 deletions

View File

@ -22,4 +22,4 @@ def test_not_match(script):
('git lock', 'git log'),
('git lock --help', 'git log --help')])
def test_get_new_command(script, output):
assert get_new_command(Command(script, '')) == output
assert get_new_command(Command(script, '')) == output

View File

@ -1,10 +1,11 @@
from thefuck.shells import shell
from thefuck.specific.git import git_support
@git_support
def match(command):
return 'git: \'lock\' is not a git command.' in command.output
@git_support
def get_new_command(command):
return command.script.replace('lock', 'log', 1)