Beispiel #1
0
def test_check_for_error_returns_no_for_tatisjr_on_il(on_injured_list):
    game_id = get_game_id(135, datetime.date(2021, 5, 1))
    error = check_for_error(game_id, "Tatis")
    assert error[0] == "Not Yet *"
    assert error[1] == "#FFC425"
Beispiel #2
0
def test_check_for_padres_game_on_il(on_injured_list):
    game_id = get_game_id(135, datetime.date(2021, 5, 6))
    error = check_for_error(game_id, "Tatis")
    assert error[0] == "Not Yet *"
    assert error[1] == "#FFC425"
Beispiel #3
0
def test_check_for_error_returns_yes_for_tatisjr(not_on_injured_list):
    game_id = get_game_id(135, datetime.date(2021, 4, 24))
    error = check_for_error(game_id, "Tatis")
    assert error[0] == "Yes"
    assert error[1] == "#E35625"