Skip to content

Commit

Permalink
Fix tests that were failing due to changing data from DraftKings (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley authored Nov 11, 2020
1 parent dcebda1 commit 4d29de0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_client_available_players.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def test_nba_player_fields(self):
self.assertEqual(lebron["match_up"]["id"], 5479720)
self.assertEqual(lebron["match_up"]["away_team_id"], 28)
self.assertEqual(lebron["match_up"]["home_team_id"], 5)
self.assertEqual(lebron["match_up"]["opposition_rank"], 23)
self.assertEqual(lebron["points_per_contest"], 54.7)
self.assertEqual(lebron["match_up"]["opposition_rank"], 15)
self.assertEqual(lebron["points_per_contest"], 55.7)
self.assertEqual(lebron["position"]["id"], 27)
self.assertEqual(lebron["position"]["name"], "SF/PF")
self.assertEqual(lebron["team_id"], 5)
Expand All @@ -44,8 +44,8 @@ def test_nba_team_series_fields(self):
self.assertEqual(team_series["away_team_id"], 28)
self.assertEqual(team_series["home_team_id"], 5)
self.assertEqual(team_series["starts_at"], datetime.datetime(2016, 11, 16, 0, 0, 0, tzinfo=pytz.UTC))
self.assertEqual(team_series["status_id"], 4)
self.assertEqual(team_series["weather"], "")
self.assertEqual(team_series["status_id"], 'Final')
self.assertIsNone(team_series["weather"])

def test_get_available_players_league_of_legends(self):
result = available_players(draft_group_id=26691)
Expand Down Expand Up @@ -84,5 +84,5 @@ def test_lol_team_series_fields(self):
self.assertEqual(team_series["away_team_id"], 62492)
self.assertEqual(team_series["home_team_id"], 156847)
self.assertEqual(team_series["starts_at"], datetime.datetime(2019, 5, 1, 9, 0, 0, tzinfo=pytz.UTC))
self.assertEqual(team_series["status_id"], 4)
self.assertEqual(team_series["weather"], "")
self.assertEqual(team_series["status_id"], 'Final')
self.assertIsNone(team_series["weather"])

0 comments on commit 4d29de0

Please sign in to comment.