Skip to content

Commit

Permalink
commented test back in
Browse files Browse the repository at this point in the history
  • Loading branch information
jdepoix committed Nov 11, 2024
1 parent 0967845 commit 339fc4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions youtube_transcript_api/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def test_load_cookies__bad_file_path(self):
with self.assertRaises(CookiePathInvalid):
YouTubeTranscriptApi._load_cookies(bad_cookies, "GJLlxj_dtq8")

# def test_load_cookies__no_valid_cookies(self):
# dirname, filename = os.path.split(os.path.abspath(__file__))
# expired_cookies = dirname + "/expired_example_cookies.txt"
# with self.assertRaises(CookiesInvalid):
# YouTubeTranscriptApi._load_cookies(expired_cookies, "GJLlxj_dtq8")
def test_load_cookies__no_valid_cookies(self):
dirname, filename = os.path.split(os.path.abspath(__file__))
expired_cookies = dirname + "/expired_example_cookies.txt"
with self.assertRaises(CookiesInvalid):
YouTubeTranscriptApi._load_cookies(expired_cookies, "GJLlxj_dtq8")

0 comments on commit 339fc4b

Please sign in to comment.