From 9be070a578be0682c4f0d524fcb586053a209eca Mon Sep 17 00:00:00 2001 From: AzideCupric Date: Thu, 26 May 2022 11:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3test=5Fbilibili=5Flive?= =?UTF-8?q?=E7=9A=84=E5=8C=B9=E9=85=8D=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/platforms/test_bilibili_live.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/platforms/test_bilibili_live.py b/tests/platforms/test_bilibili_live.py index 52648fd..130c8dc 100644 --- a/tests/platforms/test_bilibili_live.py +++ b/tests/platforms/test_bilibili_live.py @@ -35,6 +35,8 @@ async def test_fetch_bilibili_live_status(bili_live, dummy_user_subinfo): res2 = await bili_live.fetch_new_post(target, [dummy_user_subinfo]) post = res2[0][1][0] assert post.target_type == "Bilibili直播" - assert post.text == "魔法Zc目录 直播中:\n【Zc】早朝危机合约!\n\n小伙伴们速速前来围观!" + assert post.text == "【Zc】早朝危机合约!" assert post.url == "https://live.bilibili.com/3044248" assert post.target_name == "魔法Zc目录" + assert post.pics == ["http://i0.hdslb.com/bfs/live/new_room_cover/cf7d4d3b2f336c6dba299644c3af952c5db82612.jpg"] + assert post.compress == True