add 6 pics merge test

This commit is contained in:
felinae98 2021-06-13 20:59:32 +08:00
parent 60fa288b25
commit 8b24d191d4
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -22,3 +22,9 @@ async def test_9_merge():
post = plugin_module.post.Post('', '', '', pics=merge_source_9)
await post._pic_merge()
assert len(post.pics) == 5
@pytest.mark.asyncio
async def test_6_merge():
post = plugin_module.post.Post('', '', '', pics=merge_source_9[0:6]+merge_source_9[9:])
await post._pic_merge()
assert len(post.pics) == 5