This commit is contained in:
Daniel Schadt 2016-07-02 16:51:58 +02:00
parent bce06d6f43
commit e2b521a408

View File

@ -221,8 +221,8 @@ def test_log_line_parse(data, attrs):
{'created': 0, 'levelname': 'ERROR', 'name': 'foo', 'module': 'bar', {'created': 0, 'levelname': 'ERROR', 'name': 'foo', 'module': 'bar',
'funcName': 'qux', 'lineno': 10, 'levelno': 40, 'message': 'quux'}, 'funcName': 'qux', 'lineno': 10, 'levelno': 40, 'message': 'quux'},
True, True, True, True,
'\033[32m{timestamp}\033[0m \033[37mERROR (Expected)\033[0m \033[36mfoo' '\033[32m{timestamp}\033[0m \033[37mERROR (Expected)\033[0m '
' bar:qux:10\033[0m \033[37mquux\033[0m', '\033[36mfoo bar:qux:10\033[0m \033[37mquux\033[0m',
), ),
], ids=['normal', 'traceback', 'colored', 'expected error', 'expected other', ], ids=['normal', 'traceback', 'colored', 'expected error', 'expected other',
'expected error colorized']) 'expected error colorized'])