Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 0182e1a

Browse files
committed
Add test for raw image
1 parent dc2ddb5 commit 0182e1a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/functional/eyes_images/test_functional.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# from applitools.core import Region, UnscaledFixedCutProvider
22
from os import path
33

4-
from applitools.core import Region
4+
from PIL import Image
55

6-
from applitools.images import Target
6+
from applitools.images import Region, Target
77

88
here = path.abspath(path.dirname(__file__))
99

@@ -14,15 +14,22 @@ def test_check_image(eyes):
1414
eyes.close()
1515

1616

17-
def test_check_image_fluent(eyes):
17+
def test_check_image_path_fluent(eyes):
1818
eyes.open('images', 'TestCheckImage_Fluent')
1919
eyes.check("TestCheckImage_Fluent", Target().image(path.join(here, "resources/minions-800x500.jpg")))
2020
eyes.close()
2121

2222

23+
def test_check_raw_image_fluent(eyes):
24+
eyes.open('images', 'TestCheckImage_Fluent')
25+
eyes.check("TestCheckImage_Fluent", Target().image(Image.new('RGBA', (600, 600))))
26+
eyes.close()
27+
28+
2329
def test_check_image_with_ignore_region_fluent(eyes):
2430
eyes.open('images', 'TestCheckImageWithIgnoreRegion_Fluent')
25-
eyes.check("TestCheckImage_WithIgnoreRegion_Fluent", Target().image(path.join(here, "resources/minions-800x500.jpg"))
31+
eyes.check("TestCheckImage_WithIgnoreRegion_Fluent",
32+
Target().image(path.join(here, "resources/minions-800x500.jpg"))
2633
.ignore(Region(10, 20, 30, 40)))
2734
eyes.close()
2835

0 commit comments

Comments
 (0)