Beispiel #1
0
 def test_parse_file_has_many_finding_two_tools(self):
     testfile = open(
         get_unit_tests_path() +
         "/scans/huskyci/huskyci_report_many_finding_two_tools.json")
     parser = HuskyCIParser()
     findings = parser.get_findings(testfile, Test())
     testfile.close()
     self.assertEqual(15, len(findings))
Beispiel #2
0
 def test_parse_file_has_many_finding_one_tool(self):
     testfile = open(
         "dojo/unittests/scans/huskyci/huskyci_report_many_finding_one_tool.json"
     )
     parser = HuskyCIParser()
     findings = parser.get_findings(testfile, Test())
     testfile.close()
     self.assertEqual(3, len(findings))
Beispiel #3
0
 def test_parse_file_no_finding(self):
     testfile = open(
         "unittests/scans/huskyci/huskyci_report_no_finding.json")
     parser = HuskyCIParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(0, len(findings))