Skip to content

Commit

Permalink
changed worker return value
Browse files Browse the repository at this point in the history
  • Loading branch information
truethari committed Apr 19, 2021
1 parent 2955bc6 commit 3d66b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion thumb_gen/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def run(self):
if thumb_out:
print_success(self.output_folder)

return 1
return True

0 comments on commit 3d66b23

Please sign in to comment.