mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
13 lines
380 B
Python
13 lines
380 B
Python
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")
|