[WIP] Update path class and deprecate old functions#3287
Merged
LIghtJUNction merged 2 commits intochore/uni-pathsfrom Nov 2, 2025
Merged
[WIP] Update path class and deprecate old functions#3287LIghtJUNction merged 2 commits intochore/uni-pathsfrom
LIghtJUNction merged 2 commits intochore/uni-pathsfrom
Conversation
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
测试覆盖情况
已创建 32 个测试用例,覆盖了
astrbot.base.paths.AstrbotPaths类的所有功能:测试类别
初始化测试 (4个测试)
单例模式测试 (3个测试)
属性访问器测试 (9个测试)
is_root 类方法测试 (4个测试)
reload 方法测试 (2个测试)
上下文管理器测试 (6个测试)
集成测试 (3个测试)
覆盖率结果
所有 32 个测试通过,代码覆盖率达到 100%。
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.