diff --git a/pywb/recorder/test/test_recorder.py b/pywb/recorder/test/test_recorder.py index ec4da591..3780a69b 100644 --- a/pywb/recorder/test/test_recorder.py +++ b/pywb/recorder/test/test_recorder.py @@ -607,7 +607,7 @@ class TestRecorder(LiveServerTests, FakeRedisTests, TempDirTests, BaseTestClass) assert len(writer.fh_cache) == 0 def test_record_video_metadata(self): - pytest.importorskip('youtube-dl') + pytest.importorskip('youtube_dl') warc_path = to_path(self.root_dir + '/warcs/{user}/{coll}/') dedup_index = self._get_dedup_index() diff --git a/pywb/warcserver/test/test_handlers.py b/pywb/warcserver/test/test_handlers.py index d51eebc1..c4b509e9 100644 --- a/pywb/warcserver/test/test_handlers.py +++ b/pywb/warcserver/test/test_handlers.py @@ -381,7 +381,7 @@ foo=bar&test=abc""" assert resp.headers['Memento-Datetime'] == 'Mon, 29 Jul 2013 19:51:51 GMT' def test_live_video_loader(self): - pytest.importorskip('youtube-dl') + pytest.importorskip('youtube_dl') params = {'url': 'http://www.youtube.com/v/BfBgWtAIbRc', 'content_type': 'application/vnd.youtube-dl_formats+json' } @@ -399,7 +399,7 @@ foo=bar&test=abc""" assert b'Content-Type: application/vnd.youtube-dl_formats+json' in resp.body def test_live_video_loader_post(self): - pytest.importorskip('youtube-dl') + pytest.importorskip('youtube_dl') req_data = """\ GET /v/BfBgWtAIbRc HTTP/1.1 accept-encoding: gzip, deflate diff --git a/tests/test_live_rewriter.py b/tests/test_live_rewriter.py index 9ec9ab64..64140fb4 100644 --- a/tests/test_live_rewriter.py +++ b/tests/test_live_rewriter.py @@ -54,7 +54,7 @@ class TestLiveRewriter(BaseConfigTest): assert resp.status_int == 400 def test_live_video_info(self): - pytest.importorskip('youtube-dl') + pytest.importorskip('youtube_dl') resp = self.testapp.get('/live/vi_/https://www.youtube.com/watch?v=DjFZyFWSt1M') assert resp.status_int == 200 assert resp.content_type == 'application/vnd.youtube-dl_formats+json', resp.content_type