Beispiel #1
0
def test_get_goal_timings_ot():
    assert get_goal_timings_dict(["39", "48"], ["13", "45+1", "101"]) == {
        13: "away",
        39: "home",
        45: "away",
        48: "home",
        101: "away",
    }
Beispiel #2
0
def test_get_goal_timings_dict():
    assert get_goal_timings_dict(["24", "32", "37", "65", "80"],
                                 ["45", "56", "73"]) == {
                                     24: "home",
                                     32: "home",
                                     37: "home",
                                     45: "away",
                                     56: "away",
                                     65: "home",
                                     73: "away",
                                     80: "home",
                                 }
Beispiel #3
0
def test_get_goal_timings_dict_plus():
    assert get_goal_timings_dict(["90+3"], ["60"]) == {60: "away", 90: "home"}
Beispiel #4
0
def test_get_goal_timings_dict_zero():
    assert get_goal_timings_dict(["84"], ["73", "9006"]) == {
        73: "away",
        84: "home",
        90: "away",
    }
Beispiel #5
0
def test_get_goal_timings_dict_nil():
    assert get_goal_timings_dict([], []) == {}