From 1910e151d319d6620b17130ecc3c111016001664 Mon Sep 17 00:00:00 2001 From: bnm91 Date: Wed, 25 Oct 2023 16:34:15 -0700 Subject: [PATCH] fixing unit test to reflect new Team constructor --- tests/hockey/unit/test_team.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hockey/unit/test_team.py b/tests/hockey/unit/test_team.py index e03e0a35..7ce90898 100644 --- a/tests/hockey/unit/test_team.py +++ b/tests/hockey/unit/test_team.py @@ -15,13 +15,14 @@ def setUp(self) -> None: self.team = self.data['teams'][3] self.team_roster = self.team['roster'] + self.owners = self.team['owners'] def test_team(self): - team = Team(self.team, roster= self.team_roster, schedule= self.schedule, year= self.year) + team = Team(self.team, roster= self.team_roster, schedule= self.schedule, year= self.year, owners=self.owners) self.assertEqual(team.team_abbrev, 'ESPC') def test_team_roster_df(self): - team = Team(self.team, roster= self.team_roster, schedule= self.schedule, year= self.year) + team = Team(self.team, roster= self.team_roster, schedule= self.schedule, year= self.year, owners=self.owners) self.assertEqual(len(team.roster), 25) self.assertEqual(team.roster[0].name, 'Thomas Chabot')