mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-11 06:13:58 +01:00
committed by
Pablo Aguiar
parent
7b7c150bb7
commit
51e4e87280
@@ -27,9 +27,10 @@ def test_git_support(called, command, output):
|
||||
('ls', False),
|
||||
('cat git', False),
|
||||
('cat hub', False)])
|
||||
def test_git_support_match(command, is_git):
|
||||
@pytest.mark.parametrize('output', ['', None])
|
||||
def test_git_support_match(command, is_git, output):
|
||||
@git_support
|
||||
def fn(command):
|
||||
return True
|
||||
|
||||
assert fn(Command(command, '')) == is_git
|
||||
assert fn(Command(command, output)) == is_git
|
||||
|
Reference in New Issue
Block a user