StarRailDamageCal/test.py
2023-10-31 10:17:24 +08:00

17 lines
419 B
Python

import json
from typing import List
from starrail_damage_cal.cal_damage import DamageCal
async def test_get_damage_data_by_uid() -> None:
data = await DamageCal.get_damage_data_by_uid(uid="100086290", avatar_name="希儿")
if isinstance(data, List):
print(json.dumps(data, ensure_ascii=False, indent=4))
if __name__ == "__main__":
import asyncio
asyncio.run(test_get_damage_data_by_uid())