mirror of
https://github.com/baiqwerdvd/StarRailDamageCal.git
synced 2025-05-08 04:55:50 +08:00
123
This commit is contained in:
parent
01cb514856
commit
bf6596bfd3
16
test.py
Normal file
16
test.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import json
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
from starrail_damage_cal.cal_damage import DamageCal
|
||||||
|
|
||||||
|
|
||||||
|
async def test_get_damage_data_by_uid():
|
||||||
|
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())
|
Loading…
x
Reference in New Issue
Block a user