Commit 2a00311b by Alexander Popov

Refactor the assertion in colorize_result() to improve test coverage

parent a9d57d6e
......@@ -20,10 +20,9 @@ def colorize_result(input_text):
return input_text
if input_text.startswith('OK'):
color = GREEN_COLOR
elif input_text.startswith('FAIL:'):
color = RED_COLOR
else:
assert(False), f'unexpected result "{input_text}"'
assert(input_text.startswith('FAIL:')), f'unexpected result "{input_text}"'
color = RED_COLOR
return f'{color}{input_text}{COLOR_END}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment