def test_parse_file_with_no_findings(self):
     testfile = open(get_unit_tests_path() +
                     "/scans/gitleaks/no_findings.json")
     parser = GitleaksParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(0, len(findings))
 def test_parse_file_with_one_finding(self):
     testfile = open("dojo/unittests/scans/gitleaks/data_one.json")
     parser = GitleaksParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(1, len(findings))
 def test_parse_file_with_multiple_redacted_finding(self):
     testfile = open(get_unit_tests_path() +
                     "/scans/gitleaks/redacted_data_many.json")
     parser = GitleaksParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(6, len(findings))