Skip to content

Commit

Permalink
modified test_private_league to verify league switched to fallback URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Litts committed Jan 7, 2025
1 parent 2e6d5eb commit d64b1cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/football/integration/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def test_past_league(self):
self.assertEqual(league.nfl_week, 18)

def test_private_league(self):
with self.assertRaises(Exception):
League(368876, 2018)
''' Test for switching to fallback API endpoint for private leagues, rando, incorrect cookies used'''
league = League(368876, 2018, 'AEF1234567890ABCDE1234567890ABCD', '{D0C25A4C-2A0D-4E56-8E7F-20A10B663272}')

self.assertEqual(league.espn_request.LEAGUE_ENDPOINT, "https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/leagueHistory/36887?seasonId=2018")

def test_unknown_league(self):
with self.assertRaises(Exception):
Expand Down

0 comments on commit d64b1cd

Please sign in to comment.