Small colorization on the test interface.
This commit is contained in:
parent
3cfc03373f
commit
0b52ade6b5
1 changed files with 3 additions and 3 deletions
|
@ -13,11 +13,11 @@ def main():
|
|||
for test_name, test_module in tests:
|
||||
try:
|
||||
test_module.main()
|
||||
print(" ✓ {}".format(test_name))
|
||||
print(" \x1b[1;32m✓\x1b[0m {}".format(test_name))
|
||||
except AssertionError as ae:
|
||||
print(" ✗ {}: {}".format(test_name, ae.args[0]))
|
||||
print(" \x1b[1;31m✗\x1b[0m {}: {}".format(test_name, ae.args[0]))
|
||||
except Exception as e:
|
||||
print(" ! {} {}".format(test_name, e))
|
||||
print(" \x1b[1;7;31m!\x1b[0m {} {}".format(test_name, e))
|
||||
raise
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue