Skip to content

Commit

Permalink
Handle case where test host has jpeginfo not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Jan 16, 2024
1 parent 8acb75b commit 0d045c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions learning_loop_node/tests/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil

from learning_loop_node.data_classes import Context
from learning_loop_node.data_exchanger import DataExchanger
from learning_loop_node.data_exchanger import DataExchanger, check_jpeg
from learning_loop_node.globals import GLOBALS

from . import test_helper
Expand Down Expand Up @@ -67,5 +67,5 @@ async def test_removal_of_corrupted_images(data_exchanger: DataExchanger):

await data_exchanger.delete_corrupt_images('/tmp/img_folder')

assert len(os.listdir('/tmp/img_folder')) == num_images
assert len(os.listdir('/tmp/img_folder')) == num_images if check_jpeg else num_images - 1
shutil.rmtree('/tmp/img_folder', ignore_errors=True)

0 comments on commit 0d045c8

Please sign in to comment.