-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import unicode_literals
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from test.helper import get_params, try_rm
-import youtube_dl.YoutubeDL
-from youtube_dl.utils import DownloadError
+from test.helper import get_params, try_rm, is_download_test
+import yt_dlp.YoutubeDL
+from yt_dlp.utils import DownloadError
-class YoutubeDL(youtube_dl.YoutubeDL):
+class YoutubeDL(yt_dlp.YoutubeDL):
def __init__(self, *args, **kwargs):
super(YoutubeDL, self).__init__(*args, **kwargs)
self.to_stderr = self.to_screen
EXPECTED_NAME = 'gr51aVj-mLg'
+@is_download_test
class TestPostHooks(unittest.TestCase):
def setUp(self):
self.stored_name_1 = None