From 06704775edbbc703679882f1f01d91894d5003f6 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:17:53 -0800 Subject: [PATCH] add unit test case for legacy title --- unittests/tools/test_mend_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/tools/test_mend_parser.py b/unittests/tools/test_mend_parser.py index 45a300e2e2..75bbd54bcb 100644 --- a/unittests/tools/test_mend_parser.py +++ b/unittests/tools/test_mend_parser.py @@ -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: