Exemplo n.º 1
0
def test_get_race_info_missing_racer(boatrace_tools: PyJPBoatrace):
    # MISSING RACERS CASE #
    # preparation
    d = date(2020, 11, 29)
    dstr = d.strftime('%Y%m%d')
    stadium = 10
    race = 2
    # expectation
    expected = get_expected_json(
        f'expected_racelist.rno={race}&jcd={stadium:02d}&hd={dstr}.json', )
    # actual
    actual = boatrace_tools.get_race_info(d, stadium, race)
    # assertion
    assert actual == expected
Exemplo n.º 2
0
def test_get_race_info(boatrace_tools: PyJPBoatrace):

    # USUAL CASE #
    # preparation
    d = date(2020, 10, 24)
    dstr = d.strftime('%Y%m%d')
    stadium = 14
    race = 1
    # expectation
    expected = get_expected_json(
        f'expected_racelist.rno={race}&jcd={stadium:02d}&hd={dstr}.json', )
    # actual
    actual = boatrace_tools.get_race_info(d, stadium, race)
    # assertion
    assert actual == expected