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:
Andrew Hamilton 2019-07-21 22:21:12 +10:00
parent d1867f61ab
commit 195165d826
6 changed files with 19 additions and 36 deletions

View file

@ -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__":