Skip to content

Commit

Permalink
Updating tests and DefenseHub doc
Browse files Browse the repository at this point in the history
  • Loading branch information
swar committed Dec 12, 2018
1 parent d2c94bf commit 38a915b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/nba_api/stats/endpoints/defensehub.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>[https://stats.nba.com/stats/defensehub](https://stats.nba.com/stats/defensehub)
##### Valid URL
>[https://stats.nba.com/stats/defensehub?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2018-19&SeasonType=Regular+Season](https://stats.nba.com/stats/defensehub?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2018-19&SeasonType=Regular+Season)
>[https://stats.nba.com/stats/defensehub?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2017-18&SeasonType=Regular+Season](https://stats.nba.com/stats/defensehub?GameScope=Season&LeagueID=00&PlayerOrTeam=Team&PlayerScope=All+Players&Season=2017-18&SeasonType=Regular+Season)
## Parameters
API Parameter Name | Python Parameter Class | Python Parameter Variable | Pattern | Required | Nullable
Expand Down
2 changes: 1 addition & 1 deletion nba_api/stats/endpoints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'playerdashboardbylastngames', 'playerdashboardbyopponent', 'playerdashboardbyshootingsplits',
'playerdashboardbyteamperformance', 'playerdashboardbyyearoveryear', 'playerfantasyprofile',
'playerfantasyprofilebargraph', 'playergamelog', 'playergamestreakfinder', 'playernextngames',
'playerprofilev2', 'playervsplayer', 'playersvsplayers', 'playoffpicture', 'scoreboard', 'scoreboardv2',
'playerprofilev2', 'playervsplayer', 'playoffpicture', 'scoreboard', 'scoreboardv2',
'shotchartdetail', 'shotchartlineupdetail', 'teamdashlineups', 'teamdashptpass', 'teamdashptreb',
'teamdashptshots', 'teamdashboardbyclutch', 'teamdashboardbygamesplits', 'teamdashboardbygeneralsplits',
'teamdashboardbylastngames', 'teamdashboardbyopponent', 'teamdashboardbyshootingsplits',
Expand Down
9 changes: 1 addition & 8 deletions tests/stats/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
test = commonteamyears.CommonTeamYears().nba_response.valid_json()
if not test:
raise Exception('fail', 'commonteamyears')
test = defensehub.DefenseHub().nba_response.valid_json()
test = defensehub.DefenseHub(season='2017-18').nba_response.valid_json()
if not test:
raise Exception('fail', 'defensehub')
test = draftcombinedrillresults.DraftCombineDrillResults().nba_response.valid_json()
Expand Down Expand Up @@ -199,13 +199,6 @@
test = playervsplayer.PlayerVsPlayer(player_id='2544', vs_player_id='202681').nba_response.valid_json()
if not test:
raise Exception('fail', 'playervsplayer')
test = playersvsplayers.PlayersVsPlayers(player_id1='202681', player_id2='203078', player_id3='202681',
player_id4='201567', player_id5='203954', vs_player_id1='201566',
vs_player_id2='201939', vs_player_id3='201935', vs_player_id4='201142',
vs_player_id5='203076', player_team_id='1610612739',
vs_team_id='1610612765').nba_response.valid_json()
if not test:
raise Exception('fail', 'playersvsplayers')
test = playoffpicture.PlayoffPicture().nba_response.valid_json()
if not test:
raise Exception('fail', 'playoffpicture')
Expand Down

0 comments on commit 38a915b

Please sign in to comment.