Skip to content

Commit 94bd226

Browse files
ruromeroclaude
andcommitted
test(pip): add extras package to pip fixture for realistic extras filtering
Add requests[socks] to the test pyproject.toml and include PySocks in the pip_report.json install list. This makes the extras-filtering test exercise the actual code path: PySocks is now present in the report but correctly excluded from the SBOM via _hasExtraMarker. Previously the test trivially passed because PySocks was never in the install list. Implements TC-4065 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 905fabd commit 94bd226

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

test/providers/tst_manifests/pyproject/pip_pep621/pip_report.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"metadata": {
99
"name": "test-project",
1010
"version": "1.0.0",
11-
"requires_dist": ["requests>=2.32"]
11+
"requires_dist": ["requests[socks]>=2.32"]
1212
}
1313
},
1414
{
@@ -57,6 +57,14 @@
5757
"name": "certifi",
5858
"version": "2026.2.2"
5959
}
60+
},
61+
{
62+
"download_info": {"url": "https://pypi.org/PySocks-1.7.1.whl", "archive_info": {}},
63+
"requested": false,
64+
"metadata": {
65+
"name": "PySocks",
66+
"version": "1.7.1"
67+
}
6068
}
6169
]
6270
}

test/providers/tst_manifests/pyproject/pip_pep621/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name = "test-project"
33
version = "1.0.0"
44
requires-python = ">=3.12"
55
dependencies = [
6-
"requests>=2.32",
6+
"requests[socks]>=2.32",
77
]

0 commit comments

Comments
 (0)