Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import nonebot
import pytest
from nonebot.adapters.github import Adapter
from nonebug import NONEBOT_INIT_KWARGS
from nonebug.app import App
from pytest_mock import MockerFixture
Expand All @@ -26,11 +27,13 @@ def pytest_configure(config: pytest.Config) -> None:
"github_event_path": "event_path",
"plugin_test_output": "test_output",
"plugin_test_result": False,
"github_apps": [],
}


@pytest.fixture(scope="session", autouse=True)
def load_plugin(nonebug_init: None) -> set["Plugin"]:
nonebot.get_driver().register_adapter(Adapter)
return nonebot.load_plugins(str(Path(__file__).parent.parent / "src" / "plugins"))


Expand Down
Loading