Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamsiy committed Dec 17, 2024
1 parent 3794832 commit 354a25e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions backend/engine/tests/test_plugin_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,21 @@ def test_build_dict_B105(self):
"errors": [],
"generated_at": "2019-06-07T17:33:47.000000+00:00",
"metrics": {},
"results": {
"code": 'ssn_plus_one = "123-45-67890"\n',
"filename": "test.py",
"issue_confidence": "MEDIUM",
"issue_cwe": {"id": 259, "link": "https://cwe.mitre.org/data/definitions/259.html"},
"issue_severity": "LOW",
"issue_text": "Possible hardcoded password: '123-45-67890'",
"line_number": 17,
"line_range": [17],
"more_info": "https://bandit.readthedocs.io/en/1.8.0/plugins/b105_hardcoded_password_string.html",
"test_id": "B105",
"test_name": "hardcoded_password_string",
},
"results": [
{
"code": 'ssn_plus_one = "123-45-67890"\n',
"filename": "test.py",
"issue_confidence": "MEDIUM",
"issue_cwe": {"id": 259, "link": "https://cwe.mitre.org/data/definitions/259.html"},
"issue_severity": "LOW",
"issue_text": "Possible hardcoded password: '123-45-67890'",
"line_number": 17,
"line_range": [17],
"more_info": "https://bandit.readthedocs.io/en/1.8.0/plugins/b105_hardcoded_password_string.html",
"test_id": "B105",
"test_name": "hardcoded_password_string",
}
],
}
expected = [
{
Expand Down

0 comments on commit 354a25e

Please sign in to comment.