summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-03-30 03:20:30 +0000
committerAnthony Sottile <asottile@umich.edu>2021-03-30 03:20:30 +0000
commit1d5dd156ab9f2e37e40f95eb15c5a2c2cd49a7a9 (patch)
tree8b758688ac7fdc333d388aac89f9a67ed1d2aeed /tests
parent00f92087dac5b49acde245be91253dc14b612000 (diff)
parent83fc824ca1c4c73594ef910dadb7f31a11c95cee (diff)
downloadflake8-1d5dd156ab9f2e37e40f95eb15c5a2c2cd49a7a9.tar.gz
Merge branch 'remove_setuptools_command' into 'master'
remove flake8 setuptools command See merge request pycqa/flake8!470
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_setuptools_command.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/unit/test_setuptools_command.py b/tests/unit/test_setuptools_command.py
deleted file mode 100644
index 1c52b2a..0000000
--- a/tests/unit/test_setuptools_command.py
+++ /dev/null
@@ -1,33 +0,0 @@
-"""Module containing tests for the setuptools command integration."""
-import pytest
-from setuptools import dist
-
-from flake8.main import setuptools_command
-
-
-@pytest.fixture
-def distribution():
- """Create a setuptools Distribution object."""
- return dist.Distribution({
- 'name': 'foo',
- 'packages': [
- 'foo',
- 'foo.bar',
- 'foo_biz',
- ],
- })
-
-
-@pytest.fixture
-def command(distribution):
- """Create an instance of Flake8's setuptools command."""
- return setuptools_command.Flake8(distribution)
-
-
-def test_package_files_removes_submodules(command):
- """Verify that we collect all package files."""
- package_files = list(command.package_files())
- assert sorted(package_files) == [
- 'foo',
- 'foo_biz',
- ]