Skip to content

Commit

Permalink
added conditional youtube test skip
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed May 7, 2024
1 parent 152bf5f commit 8a94f82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_thepipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_extract_audio(self):
# verify it transcribed the audio correctly, i.e., 'citizens' is in the extracted text
self.assertTrue(any('citizens' in chunk.text.lower() for chunk in chunks if chunk.text is not None))

@unittest.skipUnless(os.environ.get('TEST_YOUTUBE_DL'), "requires TEST_YOUTUBE_DL")
def test_extract_youtube(self):
chunks = extractor.extract_from_source("https://www.youtube.com/watch?v=wUEr7TayrmU")
# verify it extracted the youtube video into chunks
Expand Down

0 comments on commit 8a94f82

Please sign in to comment.