python-genshin-artifact/tests/test_character_interface.py
luoshuijs 6847ba685a
Refactor genshin artifact core
Co-authored-by: kotoriのねこ <minamiktr@outlook.com>
2023-11-08 00:42:44 +08:00

17 lines
568 B
Python

from python_genshin_artifact import CharacterInterface
def test_character_interface():
params = {"HuTao": {"le_50": True}}
character = CharacterInterface(
name="HuTao", level=90, ascend=False, constellation=6, skill1=12, skill2=12, skill3=12, params=params
)
assert character.name == "HuTao"
assert character.level == 90
assert character.ascend is False
assert character.constellation == 6
assert character.skill1 == 12
assert character.skill2 == 12
assert character.skill3 == 12
assert character.params == params