From 1e9990b783fbfebb5da78d8c0e7da8064093de0c Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Sun, 13 Feb 2022 20:47:42 +0800 Subject: [PATCH] fix test_send --- tests/test_send.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_send.py b/tests/test_send.py index 81281bf..746d3f3 100644 --- a/tests/test_send.py +++ b/tests/test_send.py @@ -21,7 +21,12 @@ async def test_send_no_queue(app: App): ctx.should_call_api( "send_group_msg", {"group_id": "1233", "message": "msg2"}, True ) + ctx.should_call_api( + "send_private_msg", {"user_id": "666", "message": "priv"}, True + ) await send_msgs(bot, "1233", "group", ["msg1", "msg2"]) + await send_msgs(bot, "666", "private", ["priv"]) + assert ctx.wait_list.empty() @pytest.mark.asyncio