Skip to content

Commit

Permalink
Merge pull request #658 from roclark/patch/fix-mlb-teams-integration-…
Browse files Browse the repository at this point in the history
…test

Fix issue with the MLB test
  • Loading branch information
roclark committed Sep 14, 2021
2 parents e64e022 + 706a23e commit c19f545
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/teams/test_mlb_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,15 @@ def test_mlb_team_string_representation(self):

assert hou.__repr__() == 'Houston Astros (HOU) - 2021'

def test_mlb_teams_string_representation(self):
@mock.patch('requests.get', side_effect=mock_pyquery)
def test_mlb_teams_string_representation(self, *args, **kwargs):
expected = """San Francisco Giants (SFG)
Los Angeles Dodgers (LAD)
Tampa Bay Rays (TBR)
Milwaukee Brewers (MIL)
Houston Astros (HOU)
New York Yankees (NYY)
Chicago White Sox (CHW)
New York Yankees (NYY)
Oakland Athletics (OAK)
Boston Red Sox (BOS)
Atlanta Braves (ATL)
Expand All @@ -296,8 +297,8 @@ def test_mlb_teams_string_representation(self):
Toronto Blue Jays (TOR)
St. Louis Cardinals (STL)
Philadelphia Phillies (PHI)
Cleveland Indians (CLE)
Los Angeles Angels (LAA)
Cleveland Indians (CLE)
New York Mets (NYM)
Detroit Tigers (DET)
Colorado Rockies (COL)
Expand Down

0 comments on commit c19f545

Please sign in to comment.