Skip to content

Commit

Permalink
✅ 防止 ORM 在并发测试中报错
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Aug 1, 2024
1 parent aa32d70 commit 0e3e6dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async def app(tmp_path: Path, request: pytest.FixtureRequest, mocker: MockerFixt
sys.path.append(str(Path(__file__).parent.parent / "src" / "plugins"))

nonebot.require("nonebot_bison")
mocker.patch("nonebot_plugin_orm._data_dir", tmp_path / "orm")
from nonebot_plugin_orm import init_orm, get_session
from nonebot_plugin_htmlrender.browser import shutdown_browser

Expand Down

0 comments on commit 0e3e6dd

Please sign in to comment.