Skip to content

Commit 8b8f4f6

Browse files
committed
Fix tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 715bf82 commit 8b8f4f6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

vulnerabilities/tests/pipelines/test_oss_fuzz_v2.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
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
109
from unittest import mock
1110

11+
import pytest
1212
import yaml
13-
from vulnerabilities.pipelines.v2_importers.oss_fuzz import OSSFuzzImporterPipeline
13+
1414
from 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

0 commit comments

Comments
 (0)