From ecd892e6fd2eb152c985367feb6bf1d671edc54c Mon Sep 17 00:00:00 2001 From: Curzy Date: Sun, 5 Feb 2017 03:57:23 +0900 Subject: [PATCH] Fix test_find_modified_files --- tests/unit/test_git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_git.py b/tests/unit/test_git.py index 24d4b5b..3d1f680 100644 --- a/tests/unit/test_git.py +++ b/tests/unit/test_git.py @@ -12,12 +12,12 @@ def test_find_modified_files(lazy): # Here --cached is missing call = [ 'git', 'diff-index', '--name-only', '--diff-filter=ACMRTUXB', - 'HEAD' + 'HEAD', '|', 'grep', '-e', '\.py$' ] else: call = [ 'git', 'diff-index', '--cached', '--name-only', - '--diff-filter=ACMRTUXB', 'HEAD' + '--diff-filter=ACMRTUXB', 'HEAD', '|', 'grep', '-e', '\.py$' ] mocked_popen = mock.Mock() mocked_popen.communicate.return_value = ('', '')