Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Had the wrong test expression
  • Loading branch information
DesiPilla committed Dec 16, 2023
1 parent 6cfd331 commit 005af2a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/football/unit/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,15 @@ def test_standings_weekly(self, m):

league = League(self.league_id, self.season)

valid_week = league.standings_weekly(1)
self.assertEqual(valid_week[0].wins > valid_week[-1].wins, True)
week = 1
standings = league.standings_weekly(1)
best_team_after_week = sum(
[1 for outcome in standings[0].outcomes[:week] if outcome == "W"]
)
worst_team_after_week = sum(
[1 for outcome in standings[-1].outcomes[:week] if outcome == "W"]
)
self.assertEqual(best_team_after_week >= worst_team_after_week, True)

@requests_mock.Mocker()
def test_top_scorer(self, m):
Expand Down

0 comments on commit 005af2a

Please sign in to comment.