mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
Fix test_find_modified_files
This commit is contained in:
parent
bfd7092eff
commit
ecd892e6fd
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = ('', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue