diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-29 20:15:45 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-29 20:15:45 -0700 |
| commit | 83fc824ca1c4c73594ef910dadb7f31a11c95cee (patch) | |
| tree | 8b758688ac7fdc333d388aac89f9a67ed1d2aeed /tests/unit | |
| parent | 00f92087dac5b49acde245be91253dc14b612000 (diff) | |
| download | flake8-83fc824ca1c4c73594ef910dadb7f31a11c95cee.tar.gz | |
remove flake8 setuptools command
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_setuptools_command.py | 33 |
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', - ] |
