Esempio n. 1
0
 def test_parse_file_has_many_finding_one_tool(self):
     testfile = open(get_unit_tests_path() +
                     "/scans/ort/evaluated-model-reporter-test-output.json")
     parser = OrtParser()
     findings = parser.get_findings(testfile, Test())
     testfile.close()
     self.assertEqual(2, len(findings))
Esempio n. 2
0
 def test_parse_without_file_has_no_finding(self):
     parser = OrtParser()
     findings = parser.get_findings(None, Test())
     self.assertEqual(0, len(findings))