forked from openlp/openlp
Fixed create_thumb_invalid_size_test
This commit is contained in:
parent
55002518ef
commit
aac09c0afb
@ -337,7 +337,7 @@ class TestLib(TestCase):
|
|||||||
self.assertFalse(os.path.exists(thumb_path), 'Test was not run, because the thumb already exists.')
|
self.assertFalse(os.path.exists(thumb_path), 'Test was not run, because the thumb already exists.')
|
||||||
|
|
||||||
# WHEN: Create the thumb.
|
# WHEN: Create the thumb.
|
||||||
icon = create_thumb(image_path, thumb_path)
|
icon = create_thumb(image_path, thumb_path, size=thumb_size)
|
||||||
|
|
||||||
# THEN: Check if the thumb was created, retaining its aspect ratio.
|
# THEN: Check if the thumb was created, retaining its aspect ratio.
|
||||||
self.assertTrue(os.path.exists(thumb_path), 'Test was not ran, because the thumb already exists')
|
self.assertTrue(os.path.exists(thumb_path), 'Test was not ran, because the thumb already exists')
|
||||||
|
Loading…
Reference in New Issue
Block a user