🐛 为各主题添加 repost 的渲染 (#505)

* 🐛 为各主题添加 repost 的渲染

*  调整渲染结果

*  更新测试
This commit is contained in:
Azide
2024-03-21 14:17:25 +08:00
committed by GitHub
parent c915b36499
commit 3d4dca3b21
5 changed files with 126 additions and 20 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ async def test_generate_msg(mock_platform):
res = await post.generate()
assert len(res) == 1
assert isinstance(res[0], Text)
assert str(res[0]) == "p1\n来源: Mock-Platform MockNick\n详情: http://t.tt/1"
assert str(res[0]) == "p1\n--------------\n来源: Mock-Platform MockNick\n详情: http://t.tt/1"
post.platform.default_theme = "ht2i"
assert post.get_config_theme() is None