Esempio n. 1
0
def valid_result_given_debate(debate):
    result = Result(debate=debate)
    result.ogsp1, result.ogsp2 = 90, 90
    result.oosp1, result.oosp2 = 80, 80
    result.cgsp1, result.cgsp2 = 70, 70
    result.cosp1, result.cosp2 = 60, 60

    result.og, result.oo, result.cg, result.co = 3, 2, 1, 0
    result.save()

    return result
Esempio n. 2
0
def valid_result_with_debate():
    debate = valid_debate()
    debate.save()
    result = Result(debate=debate)
    result.og = 0
    result.oo = 1
    result.cg = 2
    result.co = 3

    result.ogsp1 = 65
    result.ogsp2 = 66
    result.oosp1 = 67
    result.oosp2 = 68
    result.cgsp1 = 69
    result.cgsp2 = 70
    result.cosp1 = 71
    result.cosp2 = 72

    result.save()
    return result