From 271bd1f1b91746d6185da40ad2cfc154a4b1a3a2 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Mon, 3 Apr 2023 18:36:20 +0800 Subject: [PATCH] :arrow_up: upgrade to latest nonebot --- pyproject.toml | 2 +- tests/test_get_bot.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9e3ed44..69470fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ [tool.poetry.dependencies] python = ">=3.10,<4.0.0" -nonebot2 = ">=2.0.0-rc.2" +nonebot2 = "^2.0.0-rc.4" httpx = ">=0.16.1" bs4 = "^0.0.1" tinydb = "^4.3.0" diff --git a/tests/test_get_bot.py b/tests/test_get_bot.py index ec24c7b..53534be 100644 --- a/tests/test_get_bot.py +++ b/tests/test_get_bot.py @@ -1,8 +1,6 @@ import pytest from nonebug import App -from .utils import AppReq - @pytest.mark.asyncio @pytest.mark.parametrize("app", [{"refresh_bot": True}], indirect=True) @@ -15,7 +13,7 @@ async def test_get_bots(app: App) -> None: async with app.test_api() as ctx: botv11 = ctx.create_bot(base=BotV11, self_id="v11") - botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq") + botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq", impl="walle") driver = get_driver() driver._bots = {botv11.self_id: botv11, botv12.self_id: botv12} @@ -38,7 +36,7 @@ async def test_refresh_bots(app: App) -> None: async with app.test_api() as ctx: botv11 = ctx.create_bot(base=BotV11, self_id="v11") - botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq") + botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq", impl="walle") driver = get_driver() driver._bots = {botv11.self_id: botv11, botv12.self_id: botv12} @@ -75,7 +73,7 @@ async def test_get_bot_two_bots(app: App) -> None: async with app.test_api() as ctx: bot1 = ctx.create_bot(base=BotV11, self_id="1") bot2 = ctx.create_bot(base=BotV11, self_id="2") - botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq") + botv12 = ctx.create_bot(base=BotV12, self_id="v12", platform="qq", impl="walle") driver = get_driver() driver._bots = {bot1.self_id: bot1, bot2.self_id: bot2, botv12.self_id: botv12}