diff --git a/backend/engine/tests/test_plugin_bandit.py b/backend/engine/tests/test_plugin_bandit.py index 0dc7a1e3..81a84c41 100644 --- a/backend/engine/tests/test_plugin_bandit.py +++ b/backend/engine/tests/test_plugin_bandit.py @@ -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 = [ {