Skip to content

Commit 207dfc1

Browse files
authored
Merge pull request #121 from procesor2017/master
v2.0.13
2 parents e46f485 + e2cfe1d commit 207dfc1

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

WatchUI/Ibasic/IBasic.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ def set_log_message(
133133
html=True,
134134
)
135135
raise AssertionError("Images are not the same")
136+
elif type_of_messages == "Fail":
137+
logger.info(
138+
f"<details><summary>Actual image is different from baseline image (click to view images)\n\n</summary><img src={path_to_image}></img></details>",
139+
html=True,
140+
)
141+
raise AssertionError("Images are not the same")
136142
elif work_object == "PDF":
137143
pass
138144
elif work_object == "Tesseract":

WatchUI/keywords/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _write_and_log(
101101
img_diff: Any = cv.hconcat([base_image, target_image])
102102
cv.imwrite(url, img_diff)
103103
self.set_log_message(
104-
work_object="Image", type_of_messages="Error", path_to_image=url
104+
work_object="Image", type_of_messages="Fail", path_to_image=url
105105
)
106106
else:
107107
img_diff: Any = cv.hconcat([base_image, target_image])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "WatchUI"
3-
version = "2.0.12"
3+
version = "2.0.13"
44
description = "RobotFramework library package for automated visual testing."
55
readme = "README.md"
66
repository = "https://github.com/Tesena-smart-testing/WatchUI"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# setup for development purposes
44
# run with python setup.py develop
5-
setup(name="WatchUI", version="2.0.12", packages=find_packages())
5+
setup(name="WatchUI", version="2.0.13", packages=find_packages())

0 commit comments

Comments
 (0)