diff --git a/unittests/tools/test_semgrep_parser.py b/unittests/tools/test_semgrep_parser.py index 03efaf43f63..13c1b90ca3b 100644 --- a/unittests/tools/test_semgrep_parser.py +++ b/unittests/tools/test_semgrep_parser.py @@ -142,12 +142,10 @@ def test_fingerprint_requires_login_and_null(self): with open("unittests/scans/semgrep/fingerprint_test.json", encoding="utf-8") as testfile: parser = SemgrepParser() findings = parser.get_findings(testfile, Test()) - self.assertEqual(2, len(findings)) # Ensure two findings are parsed - # First finding has fingerprint "requires login" + self.assertEqual(2, len(findings)) self.assertEqual("", findings[0].unique_id_from_tool) - self.assertEqual("src/test1.java", findings[0].file_path) - self.assertEqual(10, findings[0].line) - # Second finding has fingerprint "null" + self.assertEqual("sample/brute.py", findings[0].file_path) + self.assertEqual(31, findings[0].line) self.assertEqual("", findings[1].unique_id_from_tool) - self.assertEqual("src/test2.java", findings[1].file_path) - self.assertEqual(20, findings[1].line) + self.assertEqual("sample/function.go", findings[1].file_path) + self.assertEqual(37, findings[1].line)