mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
remove termcolor
This commit is contained in:
@@ -1,16 +1,7 @@
|
|||||||
#coding: utf-8
|
#coding: utf-8
|
||||||
from termcolor import colored
|
|
||||||
|
|
||||||
class MyBaseError(BaseException):
|
class MyBaseError(BaseException):
|
||||||
def __init__(self, msg):
|
pass
|
||||||
self.msg = msg
|
|
||||||
self.color_msg = colored(msg, 'red', attrs=['bold'])
|
|
||||||
|
|
||||||
def __repr__(self):
|
|
||||||
return self.msg
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return self.color_msg
|
|
||||||
|
|
||||||
class ParamsError(MyBaseError):
|
class ParamsError(MyBaseError):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
requests
|
requests
|
||||||
termcolor
|
|
||||||
flask
|
flask
|
||||||
PyYAML
|
PyYAML
|
||||||
coveralls
|
coveralls
|
||||||
|
|||||||
Reference in New Issue
Block a user