From 8adc17d311bd0686855a2445899a38782d2cae1e Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Sat, 4 Apr 2026 21:57:53 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=9C=A8=E6=A8=A1=E6=8B=9F=E8=B5=9B?= =?UTF-8?q?=E9=A9=AC=E6=B5=8B=E8=AF=95=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=81=87?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E5=AE=9E=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为模拟赛马命令的测试环境添加一个 `_FakeBot` 实例,以更真实地模拟机器人交互场景。 --- danding_bot/plugins/group_horse_racing/test_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/danding_bot/plugins/group_horse_racing/test_commands.py b/danding_bot/plugins/group_horse_racing/test_commands.py index 76ef0de..deb6d18 100644 --- a/danding_bot/plugins/group_horse_racing/test_commands.py +++ b/danding_bot/plugins/group_horse_racing/test_commands.py @@ -224,6 +224,7 @@ async def handle_test_simulate_race(bot: Bot, event: Event): fake_room_store = _InMemoryRoomStore() fake_points_service = _InMemoryPointsService() fake_message_service = _NoopMessageService() + fake_bot = _FakeBot() start_task: asyncio.Task | None = None room = None