Beispiel #1
0
def failure_handler(event):
    if state == 'compiling':
        stdout.write(9*'\b'+' {red}Failed{none} |\n')
        stdout.write('+-------------+--------+\n')
    else:
        stdout.write('|   Overall   |  {red}{:4s}{none}  |\n'.format(OjojCodes.short(event.code), **colors))
        stdout.write('+-------------+--------+\n')
Beispiel #2
0
def test_failure_handler(event):
    stdout.write('\b'*45 + '  {3:5s} / {1:5s}  |  {4:5s} / {2:5s}  |  {red}{0:4s}{none}  |\n'.format(OjojCodes.short(event.code), *state, **colors))
    stdout.write('+----------------------+-----------------+-----------------+--------+\n')
Beispiel #3
0
def accepted_handler(event):
    stdout.write('|   Overall   |   {green}{:2s}{none}   |\n'.format(OjojCodes.short(OjojCodes.AC), **colors))
    stdout.write('+-------------+--------+\n')
Beispiel #4
0
def test_ok_handler(event):
    stdout.write('\b'*9 + '   {green}{:2s}{none}   |\n'.format(OjojCodes.short(OjojCodes.AC), **colors))
    stdout.write('+----------------------+-----------------+-----------------+--------+\n')