Skip to content

Commit

Permalink
🐛 fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Feb 14, 2024
1 parent 211952f commit 2266545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/tools/test_kics_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_parse_many_findings(self):
testfile = open("unittests/scans/kics/many_findings.json")
parser = KICSParser()
findings = parser.get_findings(testfile, Test())
self.assertEqual(13, len(findings))
self.assertEqual(18, len(findings))
with self.subTest(i=0):
finding = findings[0]
self.assertEqual("Secret Management: Passwords And Secrets In Infrastructure Code", finding.title)
Expand Down Expand Up @@ -129,7 +129,7 @@ def test_parse_many_findings(self):
self.assertEqual(5, finding.line)
self.assertEqual("Terraform", finding.component_name)
self.assertIsNotNone(finding.description)
self.assertEqual(2, finding.nb_occurences)
self.assertEqual(1, finding.nb_occurences)

with self.subTest(i=8):
finding = findings[8]
Expand Down Expand Up @@ -181,7 +181,7 @@ def test_parse_many_findings(self):
self.assertEqual(20, finding.line)
self.assertEqual("Kubernetes", finding.component_name)
self.assertIsNotNone(finding.description)
self.assertEqual(5, finding.nb_occurences)
self.assertEqual(1, finding.nb_occurences)

with self.subTest(i=12):
finding = findings[12]
Expand Down

0 comments on commit 2266545

Please sign in to comment.