🐛 增加插件状态检查 (#1598)

* ✅ 优化测试用例

* 🐛 更改插件更新与安装逻辑
This commit is contained in:
AkashiCoin
2024-09-02 15:00:37 +08:00
committed by GitHub
parent 9eca6a97ca
commit 44e0f2d410
9 changed files with 1049 additions and 588 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ async def app(app: App, tmp_path: Path, mocker: MockerFixture):
def create_bot() -> Callable:
from nonebot.adapters.onebot.v11 import Bot, Adapter
def _create_bot(context: MatcherContext):
def _create_bot(context: MatcherContext) -> Bot:
return context.create_bot(
base=Bot,
adapter=nonebot.get_adapter(Adapter),