🐛 修复自检测试 (#1795)

This commit is contained in:
HibiKier 2024-12-24 11:15:42 +08:00 committed by GitHub
parent 012a23008b
commit 108cdd45b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,7 @@ async def test_check(
to_me=True,
)
ctx.receive_event(bot=bot, event=event)
ctx.should_ignore_rule(_self_check_matcher)
mock_template_to_pic.assert_awaited_once_with(
template_path=str((mock_template_path_new / "check").absolute()),
template_name="main.html",
@ -184,6 +185,7 @@ async def test_check_arm(
to_me=True,
)
ctx.receive_event(bot=bot, event=event)
ctx.should_ignore_rule(_self_check_matcher)
mock_template_to_pic.assert_awaited_once_with(
template_path=str((mock_template_path_new / "check").absolute()),
template_name="main.html",