Skip to content

Commit

Permalink
update unit test for new title check
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 21, 2024
1 parent 1d0b778 commit ed9a18c
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 @@ -60,6 +60,7 @@ def test_parse_file_with_one_vuln_has_one_findings_platform(self):
self.assertEqual("CVE-2024-51744", finding.unsaved_vulnerability_ids[0])
self.assertEqual("CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N", finding.cvssv3)
self.assertEqual(3.1, finding.cvssv3_score)
self.assertEqual("CVE-2024-51744 | github.com/golang-JWT/jwt-v3.2.2+incompatible" , finding.title)

Check failure on line 63 in unittests/tools/test_mend_parser.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E203)

unittests/tools/test_mend_parser.py:63:94: E203 Whitespace before ','

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

0 comments on commit ed9a18c

Please sign in to comment.