summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-03-29 19:01:59 -0700
committerAnthony Sottile <asottile@umich.edu>2021-03-29 19:01:59 -0700
commit1a1d850e99bb28625e47f4aa3c27014a3ac6758a (patch)
tree8f8c96385848281021783ccba3821f4bf9a645f5 /tests/unit
parent434c108f7491b589362752b12979741598bb2dff (diff)
downloadflake8-1a1d850e99bb28625e47f4aa3c27014a3ac6758a.tar.gz
remove vcs integration
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_git.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/unit/test_git.py b/tests/unit/test_git.py
deleted file mode 100644
index 24d4b5b..0000000
--- a/tests/unit/test_git.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""Tests around functionality in the git integration."""
-import mock
-import pytest
-
-from flake8.main import git
-
-
-@pytest.mark.parametrize('lazy', [True, False])
-def test_find_modified_files(lazy):
- """Confirm our logic for listing modified files."""
- if lazy:
- # Here --cached is missing
- call = [
- 'git', 'diff-index', '--name-only', '--diff-filter=ACMRTUXB',
- 'HEAD'
- ]
- else:
- call = [
- 'git', 'diff-index', '--cached', '--name-only',
- '--diff-filter=ACMRTUXB', 'HEAD'
- ]
- mocked_popen = mock.Mock()
- mocked_popen.communicate.return_value = ('', '')
-
- with mock.patch('flake8.main.git.piped_process') as piped_process:
- piped_process.return_value = mocked_popen
- git.find_modified_files(lazy)
-
- piped_process.assert_called_once_with(call)