From 1cb7a92e4015b5e3cda50719a073444a3c3b899e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 31 Mar 2017 13:12:08 +0200 Subject: [PATCH] Removed old mock-EncoderJob and replaced it with a dict The real value is a dict too, anyway. --- pillar/api/file_storage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/api/file_storage/__init__.py b/pillar/api/file_storage/__init__.py index fc8ec449..b813b566 100644 --- a/pillar/api/file_storage/__init__.py +++ b/pillar/api/file_storage/__init__.py @@ -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: