mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[tests] Remove global_setup function
This commit is contained in:
		| @@ -12,10 +12,6 @@ from youtube_dl import YoutubeDL | ||||
| from youtube_dl.utils import preferredencoding | ||||
|  | ||||
|  | ||||
| def global_setup(): | ||||
|     youtube_dl._setup_opener(timeout=10) | ||||
|  | ||||
|  | ||||
| def get_params(override=None): | ||||
|     PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), | ||||
|                                    "parameters.json") | ||||
|   | ||||
| @@ -6,8 +6,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import global_setup, try_rm | ||||
| global_setup() | ||||
| from test.helper import try_rm | ||||
|  | ||||
|  | ||||
| from youtube_dl import YoutubeDL | ||||
|   | ||||
| @@ -9,12 +9,10 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
| from test.helper import ( | ||||
|     get_params, | ||||
|     get_testcases, | ||||
|     global_setup, | ||||
|     try_rm, | ||||
|     md5, | ||||
|     report_warning | ||||
| ) | ||||
| global_setup() | ||||
|  | ||||
|  | ||||
| import hashlib | ||||
|   | ||||
| @@ -8,8 +8,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import FakeYDL, global_setup | ||||
| global_setup() | ||||
| from test.helper import FakeYDL | ||||
|  | ||||
|  | ||||
| from youtube_dl.extractor import ( | ||||
|   | ||||
| @@ -6,8 +6,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import FakeYDL, global_setup, md5 | ||||
| global_setup() | ||||
| from test.helper import FakeYDL, md5 | ||||
|  | ||||
|  | ||||
| from youtube_dl.extractor import ( | ||||
|   | ||||
| @@ -7,8 +7,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import get_params, global_setup, try_rm | ||||
| global_setup() | ||||
| from test.helper import get_params, try_rm | ||||
|  | ||||
|  | ||||
| import io | ||||
|   | ||||
| @@ -7,8 +7,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import get_params, global_setup | ||||
| global_setup() | ||||
| from test.helper import get_params | ||||
|  | ||||
|  | ||||
| import io | ||||
|   | ||||
| @@ -6,8 +6,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import FakeYDL, global_setup | ||||
| global_setup() | ||||
| from test.helper import FakeYDL | ||||
|  | ||||
|  | ||||
| from youtube_dl.extractor import ( | ||||
|   | ||||
| @@ -6,9 +6,6 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import global_setup | ||||
| global_setup() | ||||
|  | ||||
|  | ||||
| import io | ||||
| import re | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister