Skip to content

Commit

Permalink
Flake8 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
tpat13 committed Feb 7, 2024
1 parent ee697dc commit 5114806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/tools/noseyparker/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_findings(self, file, test):

# Set Finding details
for match in line['matches']:
# The following path is to account for the variability in the JSONlines output
# The following path is to account for the variability in the JSON lines output
num_elements = len(match['provenance']) - 1
json_path = match['provenance'][num_elements]

Expand Down
3 changes: 2 additions & 1 deletion unittests/tools/test_noseyparker_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def test_noseyparker_parser_error(self):
parser = NoseyParkerParser()
findings = parser.get_findings(testfile, Test())
testfile.close()
self.assertEqual(0, len(findings))
self.assertTrue(
"Invalid Nosey Parker data, make sure to use Nosey Parker v0.16.0" in str(context.exception)
)
self.assertTrue("ECONNREFUSED" in str(context.exception))
self.assertTrue("ECONNREFUSED" in str(context.exception))

0 comments on commit 5114806

Please sign in to comment.