Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigo committed Aug 20, 2024
1 parent 9ba453e commit 1ceeb6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions youqu3/assertx.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def assert_image_not_exist(
match_number: int = None,
):
"""判断界面不存在{{widget}}模板图片"""
from youqu3.gui import pylinuxauto
try:
from youqu3.gui import pylinuxauto
pylinuxauto.find_element_by_image(
widget,
rate=rate,
Expand All @@ -72,9 +72,7 @@ def assert_image_not_exist(
)
raise exceptions.TemplateElementFound(widget)
except pylinuxauto.exceptions.TemplateElementNotFound:
pass
except pylinuxauto.exceptions.TemplateElementFound as exc:
raise AssertionError(exc) from exceptions.TemplateElementFound
...

@classmethod
def assert_image_exist_during_time(
Expand Down

0 comments on commit 1ceeb6a

Please sign in to comment.