def _print_result(result): if result.result is None: color_print(result,fore=BLUE.bold()) elif result.result: color_print(result,fore=GREEN.bold()) else: color_print(result,fore=RED.bold())
def _print_status(results): status = results.get_status() if status is None: color_print("ERROR",back=BLUE.bold()) elif status: color_print("PASSED",back=GREEN.bold()) else: color_print("FAILED",back=RED.bold())