mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +08:00
15 lines
365 B
Python
15 lines
365 B
Python
import pytest
|
|
import typing
|
|
|
|
if typing.TYPE_CHECKING:
|
|
import sys
|
|
sys.path.append('./src/plugins')
|
|
import nonebot_hk_reporter
|
|
|
|
@pytest.mark.asyncio
|
|
@pytest.mark.render
|
|
async def test_render(plugin_module: 'nonebot_hk_reporter'):
|
|
render = plugin_module.utils.Render()
|
|
res = await render.text_to_pic('a\nbbbbbbbbbbbbbbbbbbbbbb\ncd')
|
|
print(res)
|