Skip to content

Commit

Permalink
v25 上修复了一些Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigo committed Aug 15, 2024
1 parent d9924f9 commit 7d190bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions youqu3/assertx.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def assert_ocr_exist(
"""
pic = None
if picture_abspath is not None:
pic = picture_abspath + ".png"
pic = picture_abspath

from youqu3.gui import pylinuxauto

Expand Down Expand Up @@ -275,7 +275,7 @@ def assert_ocr_not_exist(
"""断言文案不存在"""
pic = None
if picture_abspath is not None:
pic = picture_abspath + ".png"
pic = picture_abspath
from youqu3.gui import pylinuxauto

res = pylinuxauto.find_element_by_ocr(
Expand Down
4 changes: 2 additions & 2 deletions youqu3/driver/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def gen_html(self):
logger.info(f"html_report_url {report_server_url}")
with open(f"{self.allure_html_path}/{report_dirname}.txt", "w", encoding="utf-8") as f:
f.write(report_server_url)
except ImportError:
print("only json report")
except ImportError as e:
print(f"only json report: {e}")


if __name__ == "__main__":
Expand Down

0 comments on commit 7d190bc

Please sign in to comment.