mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
remove flake8 setuptools command
This commit is contained in:
parent
00f92087da
commit
83fc824ca1
5 changed files with 0 additions and 167 deletions
|
|
@ -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',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue