Removed old mock-EncoderJob and replaced it with a dict

The real value is a dict too, anyway.
This commit is contained in:
Sybren A. Stüvel 2017-03-31 13:12:08 +02:00
parent d8640df115
commit 1cb7a92e40

View File

@ -156,8 +156,8 @@ def _process_video(gcs, file_id, local_file, src_file):
if current_app.config['TESTING']:
log.warning('_process_video: NOT sending out encoding job due to '
'TESTING=%r', current_app.config['TESTING'])
j = type('EncoderJob', (), {'process_id': 'fake-process-id',
'backend': 'fake'})
j = {'process_id': 'fake-process-id',
'backend': 'fake'}
else:
j = Encoder.job_create(src_file)
if j is None: