mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 23:43:20 +00:00
Simplify test parameter initialization
This commit is contained in:
parent
5c892b0ba9
commit
c073e35b1e
|
@ -74,9 +74,8 @@ def test_template(self):
|
|||
print('Skipping: {0}'.format(test_case['skip']))
|
||||
return
|
||||
|
||||
params = dict(self.parameters) # Duplicate it locally
|
||||
for p in test_case.get('params', {}):
|
||||
params[p] = test_case['params'][p]
|
||||
params = self.parameters.copy()
|
||||
params.update(test_case.get('params', {}))
|
||||
|
||||
fd = FileDownloader(params)
|
||||
fd.add_info_extractor(ie())
|
||||
|
|
Loading…
Reference in a new issue