From 2f890facef4a7d34e87b8657a78d0967536bdac4 Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Sun, 22 Sep 2019 14:20:43 -0500 Subject: [PATCH] Fix NBA Boxscore integration tests The NBA Boxscore integration tests randomly started failing while attempting to create an instance of the Boxscore class. The issue is now resolved, allowing the tests to complete as expected again. Signed-Off-By: Robert Clark --- tests/integration/boxscore/test_nba_boxscore.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/integration/boxscore/test_nba_boxscore.py b/tests/integration/boxscore/test_nba_boxscore.py index 6319f729..f75ec47e 100644 --- a/tests/integration/boxscore/test_nba_boxscore.py +++ b/tests/integration/boxscore/test_nba_boxscore.py @@ -165,14 +165,12 @@ def test_nba_boxscore_dataframe_returns_dataframe_of_all_values(self): assert df1.empty def test_nba_boxscore_players(self): - boxscore = Boxscore(BOXSCORE) - - assert len(boxscore.home_players) == 13 - assert len(boxscore.away_players) == 13 + assert len(self.boxscore.home_players) == 13 + assert len(self.boxscore.away_players) == 13 - for player in boxscore.home_players: + for player in self.boxscore.home_players: assert not player.dataframe.empty - for player in boxscore.away_players: + for player in self.boxscore.away_players: assert not player.dataframe.empty