From 584dbfe610c1c58c04661486950ebd171754be3c Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Wed, 3 May 2023 23:08:18 -0600 Subject: [PATCH] Fix the license tests --- tools/python/test_licenses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."""