📝 update nonebug flow action arg (#1866)

This commit is contained in:
Ju4tCode
2023-03-31 12:47:12 +08:00
committed by GitHub
parent 43933920ed
commit d982e14793
2 changed files with 7 additions and 7 deletions

View File

@ -272,17 +272,17 @@ async def test_example(app: App):
event = make_event("/foo")
ctx.receive_event(bot, event)
ctx.should_call_send(event, "请输入密码", result=None)
ctx.should_rejected()
ctx.should_rejected(foo)
event = make_event("wrong password")
ctx.receive_event(bot, event)
ctx.should_call_send(event, "密码错误,请重新输入", result=None)
ctx.should_rejected()
ctx.should_rejected(foo)
event = make_event("wrong password")
ctx.receive_event(bot, event)
ctx.should_call_send(event, "密码错误,请重新输入", result=None)
ctx.should_rejected()
ctx.should_rejected(foo)
event = make_event("wrong password")
ctx.receive_event(bot, event)
ctx.should_call_send(event, "密码错误次数过多", result=None)
ctx.should_finished()
ctx.should_finished(foo)
```