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.
1 parent 21d18fc commit ca6c379Copy full SHA for ca6c379
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