mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
单元测试添加获取全部角色的测试
This commit is contained in:
parent
7d67827030
commit
7df91ff471
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user