diff --git a/CHANGELOG.md b/CHANGELOG.md index fb423042..c091d941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/ ## [Unreleased] +### Added + +- 插件测试时检查元数据的配置是否为 BaseModel 子类 + ### Fixed - 修复未通过标签判断是否是插件发布的问题 diff --git a/src/utils/plugin_test.py b/src/utils/plugin_test.py index a168daa5..6cc0a1ee 100644 --- a/src/utils/plugin_test.py +++ b/src/utils/plugin_test.py @@ -32,6 +32,7 @@ import os from nonebot import init, load_plugin, require +from pydantic import BaseModel class SetEncoder(json.JSONEncoder): @@ -58,6 +59,14 @@ def default(self, obj): with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf8") as f: f.write(f"METADATA<