Use .show instead of extra preview function

This commit is contained in:
Ace
2024-09-21 00:21:55 +02:00
parent b91d5ff62a
commit a3f4a18654
12 changed files with 14 additions and 40 deletions

View File

@@ -12,7 +12,6 @@ from tests import Config
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
preview = Inkyimage.preview
merge = Inkyimage.merge
tests = [
@@ -70,5 +69,5 @@ class TestWebshot(unittest.TestCase):
module = Webshot(test)
im_black, im_colour = module.generate_image()
if Config.USE_PREVIEW:
preview(merge(im_black, im_colour))
merge(im_black, im_colour).show()
logger.info('OK')