diff --git a/nosetimer/plugin.py b/nosetimer/plugin.py index b4373f9..24abec7 100644 --- a/nosetimer/plugin.py +++ b/nosetimer/plugin.py @@ -1,8 +1,9 @@ -import re +import logging import operator import os -from time import time -import logging +import re +import termcolor +import time from nose.plugins.base import Plugin @@ -15,18 +16,11 @@ class TimerPlugin(Plugin): name = 'timer' score = 1 - COLORS = { - 'ok': '\033[92m', - 'warning': '\033[93m', - 'error': '\033[91m', - 'default': '\033[0m' - } - time_format = re.compile(r'^(?P