Fix the license tests
This commit is contained in:
parent
33be6c1fe9
commit
584dbfe610
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ def licenses(dist: DistInfoDistribution):
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"dist",
|
||||
(w for w in working_set if w.location.find("arrdem_source_pypi") != -1),
|
||||
ids=lambda dist: dist.project_name,
|
||||
(w for w in working_set if w.location.find("pypi_") != -1),
|
||||
ids=lambda dist: getattr(dist, "project_name", "unknown"),
|
||||
)
|
||||
def test_approved_license(dist: DistInfoDistribution):
|
||||
"""Ensure that a given package is either allowed by name or uses an approved license."""
|
||||
|
|
Loading…
Reference in a new issue