Add missing tests
This commit is contained in:
1 parent
1ff14703c8
commit
7da5cf2b29
1 file changed
+5
-1
+5
-1
@@ -49,9 +49,13 @@ def test_get_next_draw_date_specified_from_date() -> None:
|
|||||||
|
|
||||||
@pytest.mark.parametrize("game", ['powerball', 'mega-millions'])
|
@pytest.mark.parametrize("game", ['powerball', 'mega-millions'])
|
||||||
def test_scrape_game_history(game) -> None:
|
def test_scrape_game_history(game) -> None:
|
||||||
"""Test scraping the powerball result page for 1996."""
|
"""Test scraping the powerball result page for 1996, 2020, and current year."""
|
||||||
scrape_data = sc.scrape_game_history(game, year=1996)
|
scrape_data = sc.scrape_game_history(game, year=1996)
|
||||||
assert len(scrape_data) in [17, 104]
|
assert len(scrape_data) in [17, 104]
|
||||||
|
scrape_data = sc.scrape_game_history(game, year=2020)
|
||||||
|
assert len(scrape_data) in [104, 105]
|
||||||
|
scrape_data = sc.scrape_game_history(game)
|
||||||
|
assert len(scrape_data) in range(0, 105)
|
||||||
|
|
||||||
|
|
||||||
def test_calculate_odds() -> None:
|
def test_calculate_odds() -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user