summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-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',
- ]