Files
GenshinUID/tests/test_adv.py
MingxuanGame 772d54ef99 ⬆️ update nonebug
2023-02-23 11:38:01 +08:00

32 lines
1.1 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import pytest
from nonebug import App
MESSAGE = """「安柏」
-=-=-=-=-=-=-=-=-=-
推荐5★武器阿莫斯之弓、天空之翼、终末嗟叹之诗
推荐4★武器绝弦
推荐圣遗物搭配:
[昔日宗室之仪]四件套
-=-=-=-=-=-=-=-=-=-
备注:
原神御三家之一,必胜客联动看板角色之一;
身份西风骑士团侦查骑士,蒙德飞行冠军,柏菈图的拼图(误);
人送外号解谜点火真君/打火姬
通常情况下,安柏的大世界解谜意义大于其深渊实战意义,建议根据实际需求选择投入资源培养"""
@pytest.mark.asyncio
@pytest.mark.parametrize(argnames="alias", argvalues=["安柏用什么", "安柏怎么养"])
async def test_adv_char_chat(app: App, alias):
from utils import make_event
from nonebot.adapters.onebot.v11 import Bot, Message
from GenshinUID.genshinuid_adv import get_char_adv
async with app.test_matcher(get_char_adv) as ctx:
bot = ctx.create_bot(base=Bot)
event = make_event(message=Message(alias))
ctx.receive_event(bot, event)
ctx.should_call_send(event, MESSAGE, True)
ctx.should_finished()