Skip to content

Commit

Permalink
🎉 advance NoseyParker to support version 0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Jan 14, 2025
1 parent 965f171 commit ea89c00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions unittests/tools/test_noseyparker_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ def test_noseyparker_parser_error(self):
"Invalid Nosey Parker data, make sure to use Nosey Parker v0.16.0", str(context.exception),
)
self.assertIn("ECONNREFUSED", str(context.exception))

def test_noseyparker_version_0_22_0(self):
with open("unittests/scans/noseyparker/noseyparker_0_22_0.jsonl", encoding="utf-8") as testfile:
parser = NoseyParkerParser()
findings = parser.get_findings(testfile, Test())
finding = findings[0]
self.assertEqual("Critical", finding.severity)

0 comments on commit ea89c00

Please sign in to comment.