File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
vulnerabilities/tests/pipelines Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 66# See https://github.com/aboutcode-org/vulnerablecode for support or download.
77# See https://aboutcode.org for more information about nexB OSS projects.
88#
9- import pytest
109from unittest import mock
1110
11+ import pytest
1212import yaml
13- from vulnerabilities . pipelines . v2_importers . oss_fuzz import OSSFuzzImporterPipeline
13+
1414from vulnerabilities .importer import AdvisoryData
15+ from vulnerabilities .pipelines .v2_importers .oss_fuzz import OSSFuzzImporterPipeline
1516
1617
1718@pytest .mark .django_db
@@ -23,12 +24,7 @@ def test_collect_advisories_parses_yaml_correctly(tmp_path):
2324 advisory_dict = {
2425 "id" : "CVE-2024-1234" ,
2526 "summary" : "Some summary here" ,
26- "affected" : [
27- {
28- "package" : {"name" : "some-lib" },
29- "versions" : ["1.0.0" ]
30- }
31- ]
27+ "affected" : [{"package" : {"name" : "some-lib" }, "versions" : ["1.0.0" ]}],
3228 }
3329 yaml_file .write_text (yaml .dump (advisory_dict ), encoding = "utf-8" )
3430
You can’t perform that action at this time.
0 commit comments