[tests] fix test, the returned path should be the new path

This commit is contained in:
Pierre Mdawar 2019-01-03 15:48:46 +02:00
parent 4abc9041bf
commit b3152c00d6

View File

@ -605,7 +605,9 @@ class TestYoutubeDL(unittest.TestCase):
def run(self, info):
with open(audiofile, 'wt') as f:
f.write('EXAMPLE')
return [info['filepath']], info
old_file = info['filepath']
info['filepath'] = audiofile
return [old_file], info
def run_pp(params, PP):
with open(filename, 'wt') as f: