blob: 5f7c0048d323ec795c254173b789a00756748364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import pytest
import nonebot
from nonebot.adapters.onebot.v11 import Adapter as OnebotV11Adapter
from nonebug import NONEBOT_INIT_KWARGS
def pytest_configure(config: pytest.Config):
config.stash[NONEBOT_INIT_KWARGS] = {
"superusers": {"1145141919"},
"command_start": {""},
}
@pytest.fixture(scope="session", autouse=True)
def load_bot(nonebug_init: None):
driver = nonebot.get_driver()
driver.register_adapter(OnebotV11Adapter)
nonebot.load_plugins("ATRI/plugins")
|