Skip to content

Commit

Permalink
✅ 修改测试
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Aug 15, 2024
1 parent 4e42322 commit 44abaf0
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions tests/test_wakatime.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,20 @@ async def test_bind_wakatime_private(app: App, mocker: MockerFixture):
event = fake_v11_private_message_event(message=OneBotV11Message("/waka bind"))

ctx.receive_event(bot, event)
ctx.should_call_send(
event,
OneBotV11Message(
[
OneBotV11MS.at("2310"),
OneBotV11MS.text(f"前往该页面绑定 wakatime 账号:{auth_url}"),
OneBotV11MS.text(
"\n请再次输入当前命令,并将获取到的 code 作为参数传入完成绑定"
if not mountable
else ""
),
]
),
result=True,

message = OneBotV11Message(
[
OneBotV11MS.at("2310"),
OneBotV11MS.text(f"前往该页面绑定 wakatime 账号:{auth_url}"),
]
)
if not mountable:
message.append(
OneBotV11MS.text(
"请再次输入当前命令,并将获取到的 code 作为参数传入完成绑定"
)
)
ctx.should_call_send(event, message, result=True)
ctx.should_finished()


Expand Down

0 comments on commit 44abaf0

Please sign in to comment.