From 3d66b234d285a63b985705270c6aefb8577ac84d Mon Sep 17 00:00:00 2001 From: Tharindu N <40334396+truethari@users.noreply.github.com> Date: Mon, 19 Apr 2021 19:01:08 +0530 Subject: [PATCH] changed worker return value --- tests/test_worker.py | 4 ++-- thumb_gen/worker.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 9535658..2a1bed3 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -1,6 +1,6 @@ import pytest -from thumb_gen.worker import Generator +from thumb_gen.worker import Generator def test_worker(): #video_path, output_path='', custom_text='True', font_dir='', font_size=0 @@ -9,4 +9,4 @@ def test_worker(): custom_text = "thumb gen" app = Generator(video_path, output_path, custom_text) test_worker_value = app.run() - assert test_worker_value == 1 + assert test_worker_value == True diff --git a/thumb_gen/worker.py b/thumb_gen/worker.py index dadbf31..6391fd2 100644 --- a/thumb_gen/worker.py +++ b/thumb_gen/worker.py @@ -47,4 +47,4 @@ def run(self): if thumb_out: print_success(self.output_folder) - return 1 + return True