Skip to content

Commit

Permalink
尝试修复测试报错
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 19, 2023
1 parent 8b79339 commit 5523dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def pytest_configure(config: pytest.Config) -> None:
}


@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="session")
def load_plugin(nonebug_init: None):
from nonebot.adapters.onebot.v11 import Adapter

Expand All @@ -32,7 +32,7 @@ def load_plugin(nonebug_init: None):


@pytest.fixture
async def app(nonebug_init: None, tmp_path: Path):
async def app(nonebug_init: None, tmp_path: Path, load_plugin):
from nonebot_plugin_datastore.config import plugin_config
from nonebot_plugin_datastore.db import init_db

Expand Down

0 comments on commit 5523dc6

Please sign in to comment.