mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
add tests for use_cipher_signature videos (#897) and the ability to test multiple videos per IE
This commit is contained in:
@ -153,9 +153,11 @@ def generator(test_case):
|
||||
return test_template
|
||||
|
||||
### And add them to TestDownload
|
||||
for test_case in defs:
|
||||
for n, test_case in enumerate(defs):
|
||||
test_method = generator(test_case)
|
||||
test_method.__name__ = "test_{0}".format(test_case["name"])
|
||||
if getattr(TestDownload, test_method.__name__, False):
|
||||
test_method.__name__ = "test_{0}_{1}".format(test_case["name"], n)
|
||||
setattr(TestDownload, test_method.__name__, test_method)
|
||||
del test_method
|
||||
|
||||
|
Reference in New Issue
Block a user