auto flake and corrections
This commit is contained in:
@@ -9,7 +9,6 @@ import unittest
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
from PIL import Image as PILImage
|
||||
import numpy as np
|
||||
|
||||
from pyWebLayout.abstract.interactive_image import InteractiveImage
|
||||
|
||||
@@ -123,7 +122,6 @@ class TestInteractiveImage(unittest.TestCase):
|
||||
|
||||
def test_create_and_add_to(self):
|
||||
"""Test the convenience factory method"""
|
||||
callback_result = []
|
||||
|
||||
def callback(point):
|
||||
return "added!"
|
||||
@@ -171,8 +169,18 @@ class TestInteractiveImage(unittest.TestCase):
|
||||
def callback2(point):
|
||||
return "image2"
|
||||
|
||||
img1 = InteractiveImage(source=str(self.test_image_path), width=50, height=50, callback=callback1)
|
||||
img2 = InteractiveImage(source=str(self.test_image_path), width=50, height=50, callback=callback2)
|
||||
img1 = InteractiveImage(
|
||||
source=str(
|
||||
self.test_image_path),
|
||||
width=50,
|
||||
height=50,
|
||||
callback=callback1)
|
||||
img2 = InteractiveImage(
|
||||
source=str(
|
||||
self.test_image_path),
|
||||
width=50,
|
||||
height=50,
|
||||
callback=callback2)
|
||||
|
||||
# Set different bounds
|
||||
img1.set_rendered_bounds(origin=(0, 0), size=(50, 50))
|
||||
|
||||
Reference in New Issue
Block a user