deleted unused base.get_Recommended function (deprecated by RecommendationEngine)

This commit is contained in:
Tristan Lee
2022-04-12 23:06:42 -05:00
parent bcb68a17fb
commit 1627b38ae4
2 changed files with 0 additions and 21 deletions

View File

@@ -251,21 +251,6 @@ def process_raw_comment_info(raw_comment_info: dict) -> Comment:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
def get_recommended(video: Video, auth_token: str = None) -> typing.List['Video']:
if auth_token is None:
auth_token = api.get_auth_token()
else:
auth_token = auth_token
recommended_video_info_list = api.get_recommended(
video_title=video.title, video_id=video.claim_id)
recommended_videos = [process_raw_video_info(raw_video_info, auth_token) for raw_video_info in recommended_video_info_list]
return recommended_videos
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
class RecommendationEngine:
#-------------------------------------------------------------------------#

View File

@@ -41,12 +41,6 @@ def test_process_raw_video_info(resources):
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
def test_get_recommended(resources):
video = base.process_raw_video_info(raw_video_info = resources['full_video_info'], auth_token = resources['auth_token'])
base.get_recommended(video = video)
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
def test_process_raw_comment_info(resources):
base.process_raw_comment_info(raw_comment_info = resources['full_comment_info'])