From 005af2ad578816ad87199fc7226ade3fd9e34897 Mon Sep 17 00:00:00 2001
From: DesiPilla <desi.m.pilla@gmail.com>
Date: Sat, 16 Dec 2023 01:22:38 -0500
Subject: [PATCH] test

Had the wrong test expression
---
 tests/football/unit/test_league.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/football/unit/test_league.py b/tests/football/unit/test_league.py
index 9adb878b..d2b935a3 100644
--- a/tests/football/unit/test_league.py
+++ b/tests/football/unit/test_league.py
@@ -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):