fix pic merge

This commit is contained in:
felinae98
2021-09-28 11:48:31 +08:00
parent 3c840b6a4b
commit ca279d036b
3 changed files with 16 additions and 1 deletions
+12
View File
@@ -40,3 +40,15 @@ async def test_3_merge(plugin_module):
post = plugin_module.post.Post('', '', '', pics=merge_source_9[0:3]+merge_source_9[9:])
await post._pic_merge()
assert len(post.pics) == 5
@pytest.mark.asyncio
async def test_6_merge_only(plugin_module):
post = plugin_module.post.Post('', '', '', pics=merge_source_9[0:6])
await post._pic_merge()
assert len(post.pics) == 1
@pytest.mark.asyncio
async def test_3_merge_only(plugin_module):
post = plugin_module.post.Post('', '', '', pics=merge_source_9[0:3])
await post._pic_merge()
assert len(post.pics) == 1