Skip to content

Commit

Permalink
interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
julianthome committed May 19, 2020
1 parent 22bd796 commit 077ef16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/unit/core/test_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def test_issue_create(self):
def test_issue_str(self):
test_issue = _get_issue_instance()
expect = ("Issue: 'Test issue' from B999:bandit_plugin:"
f' CWE: {str(Cwe(Cwe.MULTIPLE_BINDS))},'
' CWE: %s,'
" Severity: MEDIUM "
"Confidence: MEDIUM at code.py:1")

self.assertEqual(
expect,
expect % str(Cwe(Cwe.MULTIPLE_BINDS)),
str(test_issue)
)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/formatters/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_report_nobaseline(self, get_issue_list):
'binding.py (score: ',
"CONFIDENCE: 1",
"SEVERITY: 1",
f'CWE: {str(Cwe(Cwe.MULTIPLE_BINDS))}',
"CWE: %s" % str(Cwe(Cwe.MULTIPLE_BINDS)),
'Files excluded (1):',
'def.py',
'Undefined: 1',
Expand Down

0 comments on commit 077ef16

Please sign in to comment.