Pass color option to git diff unconditionally

This commit is contained in:
Mandar Vaze 2019-06-01 07:40:20 +05:30
parent 4f4767c9e0
commit 64f0178b75
2 changed files with 5 additions and 13 deletions

View file

@ -181,12 +181,6 @@ def test_global_exclude(cap_out, store, tempdir_factory):
@pytest.mark.parametrize(
('args', 'expected_out'),
[
(
{
'show_diff_on_failure': True,
},
b'All changes made by hooks:',
),
(
{
'show_diff_on_failure': True,
@ -198,6 +192,7 @@ def test_global_exclude(cap_out, store, tempdir_factory):
{
'show_diff_on_failure': True,
'all_files': True,
'color': 'auto',
},
b'reproduce locally with: pre-commit run --all-files',
),