单元测试添加获取全部角色的测试

This commit is contained in:
洛水居室 2022-06-15 20:32:50 +08:00
parent 7d67827030
commit 7df91ff471
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -35,7 +35,7 @@ class TestWiki(IsolatedAsyncioTestCase):
async def test_get_all_weapon_url(self):
url_list = await self.weapons.get_all_weapon_url()
self.assertEqual(True, len(url_list) >= 135)
self.assertEqual(True, len(url_list) >= 123)
async def test_get_characters(self):
characters_info = await self.characters.get_characters(self.TEST_CHARACTERS_URL)
@ -45,6 +45,10 @@ class TestWiki(IsolatedAsyncioTestCase):
self.assertEqual(characters_info["description"], "「往生堂」七十七代堂主,年纪轻轻就已主掌璃月的葬仪事务。")
self.assertEqual(characters_info["allegiance"], "往生堂")
async def test_get_all_characters_url(self):
url_list = await self.characters.get_all_characters_url()
self.assertEqual(True, len(url_list) >= 49)
if __name__ == "__main__":
unittest.main()