fix lint
This commit is contained in:
parent
fa2636c2f6
commit
a6b47a7c09
@ -97,7 +97,7 @@ class LogLine(testprocess.Line):
|
|||||||
return self.formatted_str(colorized=False)
|
return self.formatted_str(colorized=False)
|
||||||
|
|
||||||
def formatted_str(self, colorized=True):
|
def formatted_str(self, colorized=True):
|
||||||
"""Return a formatted colorized line.strip()
|
"""Return a formatted colorized line.
|
||||||
|
|
||||||
This returns a line like qute without --json-logging would produce.
|
This returns a line like qute without --json-logging would produce.
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ def test_log_line_parse(data, attrs):
|
|||||||
'funcName': 'qux', 'lineno': 10, 'levelno': 10, 'message': 'quux'},
|
'funcName': 'qux', 'lineno': 10, 'levelno': 10, 'message': 'quux'},
|
||||||
True,
|
True,
|
||||||
'\033[32m{timestamp}\033[0m \033[37mDEBUG \033[0m \033[36mfoo '
|
'\033[32m{timestamp}\033[0m \033[37mDEBUG \033[0m \033[36mfoo '
|
||||||
'bar:qux:10\033[0m \033[37mquux\033[0m',
|
' bar:qux:10\033[0m \033[37mquux\033[0m',
|
||||||
),
|
),
|
||||||
], ids=['normal', 'traceback', 'colored'])
|
], ids=['normal', 'traceback', 'colored'])
|
||||||
def test_log_line_formatted(data, colorized, expected):
|
def test_log_line_formatted(data, colorized, expected):
|
||||||
|
Loading…
Reference in New Issue
Block a user