mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-05-31 16:16:11 +08:00
add weibo test
This commit is contained in:
parent
17bf73bc34
commit
b3e305cbbb
12
tests/platforms/test_weibo.py
Normal file
12
tests/platforms/test_weibo.py
Normal file
@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
import typing
|
||||
if typing.TYPE_CHECKING:
|
||||
import sys
|
||||
sys.path.append('./src/plugins')
|
||||
import nonebot_hk_reporter
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_name(plugin_module: 'nonebot_hk_reporter'):
|
||||
weibo = plugin_module.platform.platform_manager['weibo']
|
||||
name = await weibo.get_account_name('6279793937')
|
||||
assert(name == "明日方舟Arknights")
|
Loading…
x
Reference in New Issue
Block a user