mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-21 21:58:04 +00:00
✨ 角色攻略查询添加须弥角色
This commit is contained in:
parent
0addf6fe60
commit
c6baac1659
@ -9,7 +9,7 @@ class GameStrategyService:
|
|||||||
self._cache = cache
|
self._cache = cache
|
||||||
self._hyperion = Hyperion()
|
self._hyperion = Hyperion()
|
||||||
if collections is None:
|
if collections is None:
|
||||||
self._collections = [839176, 839179, 839181]
|
self._collections = [839176, 839179, 839181, 1180811]
|
||||||
else:
|
else:
|
||||||
self._collections = collections
|
self._collections = collections
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ async def hyperion():
|
|||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@flaky(3, 1)
|
@flaky(3, 1)
|
||||||
async def test_get_strategy(hyperion):
|
async def test_get_strategy(hyperion):
|
||||||
test_collection_id_list = [839176, 839179, 839181]
|
test_collection_id_list = [839176, 839179, 839181, 1180811]
|
||||||
test_result = ["温迪", "胡桃", "雷电将军"]
|
test_result = ["温迪", "胡桃", "雷电将军", "柯莱"]
|
||||||
|
|
||||||
async def get_post_id(_collection_id: int, character_name: str) -> str:
|
async def get_post_id(_collection_id: int, character_name: str) -> str:
|
||||||
post_full_in_collection = await hyperion.get_post_full_in_collection(_collection_id)
|
post_full_in_collection = await hyperion.get_post_full_in_collection(_collection_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user