We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b37e7f7 + ca6c379 commit f038c23Copy full SHA for f038c23
tests/test_sbom.py
@@ -27,6 +27,18 @@ def test_spdx_id(value: str, expected: str) -> None:
27
assert sbom.spdx_id(value) == expected
28
29
30
+def test_spdx_id_collisions():
31
+ sbom._SPDX_IDS_TO_VALUES = {} # Reset the cache.
32
+ assert (
33
+ sbom.spdx_id("SPDXRef-FILE-Lib/collections.py")
34
+ == "SPDXRef-FILE-Lib-collections.py"
35
+ )
36
37
+ sbom.spdx_id("SPDXRef-FILE-Lib/_collections.py")
38
+ == "SPDXRef-FILE-Lib-collections.py-fc43043d"
39
40
+
41
42
@pytest.mark.parametrize(
43
["package_sha1s", "package_verification_code"],
44
[
0 commit comments