mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-14 06:40:49 +01:00
fixed flake8 issues
This commit is contained in:
parent
a633fb5366
commit
6ec28073ed
@ -22,4 +22,4 @@ def test_not_match(script):
|
|||||||
('git lock', 'git log'),
|
('git lock', 'git log'),
|
||||||
('git lock --help', 'git log --help')])
|
('git lock --help', 'git log --help')])
|
||||||
def test_get_new_command(script, output):
|
def test_get_new_command(script, output):
|
||||||
assert get_new_command(Command(script, '')) == output
|
assert get_new_command(Command(script, '')) == output
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
from thefuck.shells import shell
|
|
||||||
from thefuck.specific.git import git_support
|
from thefuck.specific.git import git_support
|
||||||
|
|
||||||
|
|
||||||
@git_support
|
@git_support
|
||||||
def match(command):
|
def match(command):
|
||||||
return 'git: \'lock\' is not a git command.' in command.output
|
return 'git: \'lock\' is not a git command.' in command.output
|
||||||
|
|
||||||
|
|
||||||
@git_support
|
@git_support
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
return command.script.replace('lock', 'log', 1)
|
return command.script.replace('lock', 'log', 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user