diff --git a/tools/python/test_licenses.py b/tools/python/test_licenses.py index 21ab266..a8165ef 100644 --- a/tools/python/test_licenses.py +++ b/tools/python/test_licenses.py @@ -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."""