mirror of
https://github.com/Xtao-Labs/QQ-GitHub-Bot.git
synced 2025-01-30 15:08:54 +00:00
14 lines
363 B
Python
14 lines
363 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
async def load_plugins(nonebug_init):
|
|
import nonebot
|
|
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11_Adapter
|
|
|
|
driver = nonebot.get_driver()
|
|
driver.register_adapter(ONEBOT_V11_Adapter)
|
|
|
|
config = driver.config
|
|
nonebot.load_all_plugins(set(config.plugins), set(config.plugin_dirs))
|