Skip to content

Commit

Permalink
fix: update emoji
Browse files Browse the repository at this point in the history
Description:

Log:
  • Loading branch information
mikigo committed Nov 1, 2023
1 parent 85dda66 commit 96ad5c7
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,40 +855,36 @@ def send2pms(case_res_path, data_send_result_csv):
# pylint: disable=unused-argument
def pytest_emoji_passed(config, head_line):
"""pytest_emoji_passed"""
# 笑脸
return (
f"【 {datetime.now()} {head_line} || 😃\n",
f"【 {datetime.now()} {head_line} || PASSED 😃\n",
f"【 {datetime.now()} {head_line} || \n",
f"【 {datetime.now()} {head_line} || PASSED \n",
)


# pylint: disable=unused-argument
def pytest_emoji_failed(config, head_line):
"""pytest_emoji_failed"""
# 哭笑不得
return (
f"【 {datetime.now()} {head_line} || 😰\n",
f"【 {datetime.now()} {head_line} || FAILED 😰\n",
f"【 {datetime.now()} {head_line} || \n",
f"【 {datetime.now()} {head_line} || FAILED \n",
)


# pylint: disable=unused-argument
def pytest_emoji_skipped(config, head_line):
"""pytest_emoji_skipped"""
# 翻白眼儿
return (
f"【 {datetime.now()} {head_line} || 🙄 】\n",
f"【 {datetime.now()} {head_line} || SKIPPED 🙄 】\n",
f"【 {datetime.now()} {head_line} || 🙄\n",
f"【 {datetime.now()} {head_line} || SKIPPED 🙄\n",
)


# pylint: disable=unused-argument
def pytest_emoji_error(config, head_line):
"""pytest_emoji_error"""
# 哭哭
return (
f"【 {datetime.now()} {head_line} || 😡\n",
f"【 {datetime.now()} {head_line} || ERROR 😡\n",
f"【 {datetime.now()} {head_line} || \n",
f"【 {datetime.now()} {head_line} || ERROR \n",
)


Expand Down

0 comments on commit 96ad5c7

Please sign in to comment.