From b5149bd27403c2da4c4ca6e1e3a53114fd7e0277 Mon Sep 17 00:00:00 2001 From: "OMEGA\\Swar" Date: Mon, 8 Oct 2018 23:57:43 -0400 Subject: [PATCH] Adding LeagueDashPtStats to tests and __init__ --- nba_api/stats/endpoints/__init__.py | 2 +- tests/stats/test_endpoints.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nba_api/stats/endpoints/__init__.py b/nba_api/stats/endpoints/__init__.py index 74279973..ed38e5f5 100644 --- a/nba_api/stats/endpoints/__init__.py +++ b/nba_api/stats/endpoints/__init__.py @@ -5,7 +5,7 @@ 'draftcombinespotshooting', 'draftcombinestats', 'drafthistory', 'franchisehistory', 'homepageleaders', 'homepagev2', 'infographicfanduelplayer', 'leaderstiles', 'leaguedashlineups', 'leaguedashplayerbiostats', 'leaguedashplayerclutch', 'leaguedashplayerptshot', 'leaguedashplayershotlocations', 'leaguedashplayerstats', - 'leaguedashptdefend', 'leaguedashptteamdefend', 'leaguedashteamclutch', 'leaguedashteamptshot', + 'leaguedashptdefend', 'leaguedashptstats', 'leaguedashptteamdefend', 'leaguedashteamclutch', 'leaguedashteamptshot', 'leaguedashteamshotlocations', 'leaguedashteamstats', 'leaguegamefinder', 'leaguegamelog', 'leagueleaders', 'leaguestandings', 'playbyplay', 'playbyplayv2', 'playerawards', 'playercareerstats', 'playercompare', 'playerdashptpass', 'playerdashptreb', 'playerdashptshotdefend', 'playerdashptshots', diff --git a/tests/stats/test_endpoints.py b/tests/stats/test_endpoints.py index 0478b696..73e6d769 100644 --- a/tests/stats/test_endpoints.py +++ b/tests/stats/test_endpoints.py @@ -96,6 +96,9 @@ test = leaguedashptdefend.LeagueDashPtDefend().nba_response.valid_json() if not test: raise Exception('fail', 'leaguedashptdefend') +test = leaguedashptstats.LeagueDashPtStats().nba_response.valid_json() +if not test: + raise Exception('fail', 'leaguedashptstats') test = leaguedashptteamdefend.LeagueDashPtTeamDefend().nba_response.valid_json() if not test: raise Exception('fail', 'leaguedashptteamdefend')