From bf6596bfd345bd642c3aaed7571e6b615ac250e5 Mon Sep 17 00:00:00 2001 From: qwerdvd <105906879+qwerdvd@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:01:42 +0800 Subject: [PATCH] 123 --- test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..890cd38 --- /dev/null +++ b/test.py @@ -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())