Skip to content

Commit

Permalink
remove more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
martincham committed Sep 6, 2024
1 parent bf3bbf4 commit 1f29fa9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
16 changes: 8 additions & 8 deletions espn_api/basketball/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@
}

NINE_CAT_STATS = {
'3PTM',
'AST',
'BLK',
'FG%',
'FT%',
'PTS',
'REB',
'STL',
'3PTM',
'AST',
'BLK',
'FG%',
'FT%',
'PTS',
'REB',
'STL',
'TO',
}
8 changes: 4 additions & 4 deletions espn_api/wbasketball/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
}

STAT_ID_MAP = {
'10': 'projected',
'01': 'last_7',
'02': 'last_15',
'03': 'last_30'
'10': 'projected',
'01': 'last_7',
'02': 'last_15',
'03': 'last_30',
}

ACTIVITY_MAP = {
Expand Down
13 changes: 4 additions & 9 deletions tests/basketball/integration/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def test_player_info(self):
self.assertEqual(player.schedule['2']['team'], 'BKN')
self.assertEqual(player.stats['2']['team'], 'BKN')
self.assertEqual(player.stats['2']['total']['PTS'], 24.0)
self.assertEqual(
player.nine_cat_averages,
self.assertEqual(player.nine_cat_averages,
{
'PTS': 17.3,
'BLK': 1.7,
Expand All @@ -61,9 +60,7 @@ def test_league_box_scores(self):
final_matchup = self.league.box_scores()[0]
middle_matchup = self.league.box_scores(matchup_period=7)[0]
# same matchup period but single scoring period
scoring_period_matchup = self.league.box_scores(
scoring_period=48, matchup_total=False
)[0]
scoring_period_matchup = self.league.box_scores(scoring_period=48, matchup_total=False)[0]

self.assertEqual(final_matchup.home_score, 4240.0)
self.assertEqual(final_matchup.away_lineup[0].points, 156.0)
Expand All @@ -79,12 +76,10 @@ def test_league_box_scores_category(self):

score = league.box_scores(matchup_period=3, scoring_period=21)

self.assertEqual(
score[0].__repr__(), 'Box Score(Team(Team McWilliams) at Team(Team Wendt))'
)
self.assertEqual(score[0].__repr__(), 'Box Score(Team(Team McWilliams) at Team(Team Wendt))')
self.assertEqual(score[0].away_lineup[0].name, 'Stephen Curry')
# comment for now until matchup week is over
self.assertEqual(score[0].away_stats['PTS'], {'value': 733.0, 'result': 'WIN'})
self.assertEqual(score[0].away_stats['PTS'], { 'value': 733.0, 'result': 'WIN' })

def test_past_league(self):
league = League(411647, 2017)
Expand Down

0 comments on commit 1f29fa9

Please sign in to comment.