tools: Enable color for bandit.
- Also timeout can now be specified in tools.toml. - Not truncating the timestamp from bandit anymore, so dropping its golden file.
This commit is contained in:
parent
d1867f61ab
commit
195165d826
6 changed files with 19 additions and 36 deletions
|
|
@ -1,19 +0,0 @@
|
|||
Test results:
|
||||
No issues identified.
|
||||
|
||||
Code scanned:
|
||||
Total lines of code: 2
|
||||
Total lines skipped (#nosec): 0
|
||||
|
||||
Run metrics:
|
||||
Total issues (by severity):
|
||||
Undefined: 0.0
|
||||
Low: 0.0
|
||||
Medium: 0.0
|
||||
High: 0.0
|
||||
Total issues (by confidence):
|
||||
Undefined: 0.0
|
||||
Low: 0.0
|
||||
Medium: 0.0
|
||||
High: 0.0
|
||||
Files skipped (0):
|
||||
|
|
@ -155,6 +155,10 @@ class TermStrTests(unittest.TestCase):
|
|||
termstr.TermStr("foo").bold())
|
||||
self.assertEqual(TermStr.from_term(eris.terminal.ESC + "[Kfoo"),
|
||||
termstr.TermStr("foo"))
|
||||
self.assertEqual(TermStr.from_term(eris.terminal.ESC + "[95mfoo"),
|
||||
termstr.TermStr("foo").fg_color(13))
|
||||
self.assertEqual(TermStr.from_term(eris.terminal.ESC + "[105mfoo"),
|
||||
termstr.TermStr("foo").bg_color(13))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -127,9 +127,6 @@ class ToolsTestCase(unittest.TestCase):
|
|||
def test_python_mccable(self):
|
||||
self._test_tool(tools.python_mccabe, self.HI_OK)
|
||||
|
||||
def test_bandit(self):
|
||||
self._test_tool(tools.bandit, self.HI_OK)
|
||||
|
||||
# FIX: Make the golden-file deterministic
|
||||
# def test_pydisasm(self):
|
||||
# self._test_tool(tools.pydisasm,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue