Skip to content

Commit

Permalink
add unit test case for legacy title
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 21, 2024
1 parent 4c1e25c commit 0670477
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unittests/tools/test_mend_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_parse_file_with_one_sca_vuln_finding(self):
self.assertEqual(1, len(findings))
finding = list(findings)[0]
self.assertEqual("**Locations Found**: D:\\MendRepo\\test-product\\test-project\\test-project-subcomponent\\path\\to\\the\\Java\\commons-codec-1.6_donotuse.jar", finding.steps_to_reproduce)
self.assertEqual("WS-2019-0379 | commons-codec-1.6.jar", finding.title)

def test_parse_file_with_no_vuln_has_no_findings_platform(self):
with open("unittests/scans/mend/mend-sca-platform-api3-no-findings.json", encoding="utf-8") as testfile:
Expand Down

0 comments on commit 0670477

Please sign in to comment.