File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
vulnerabilities/tests/pipelines Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def test_advisories_count_and_collect(tmp_path):
6363 # Should yield None for index.json and one AdvisoryData
6464 real = [a for a in advisories if isinstance (a , AdvisoryData )]
6565 assert len (real ) == 1
66- assert real [0 ].advisory_id == "NODESEC-NPM -001"
66+ assert real [0 ].advisory_id == "npm -001"
6767
6868
6969def test_to_advisory_data_skips_index (tmp_path ):
@@ -92,7 +92,7 @@ def test_to_advisory_data_full(tmp_path):
9292 p = NpmImporterPipeline ()
9393 adv = p .to_advisory_data (file )
9494 assert isinstance (adv , AdvisoryData )
95- assert adv .advisory_id == "NODESEC-NPM -123"
95+ assert adv .advisory_id == "npm -123"
9696 assert "ti" in adv .summary and "desc" in adv .summary
9797 assert adv .date_published .tzinfo == pytz .UTC
9898 assert len (adv .severities ) == 1 and adv .severities [0 ].system == CVSSV3
You can’t perform that action at this time.
0 commit comments