Closed AkashiCoin closed 2 weeks ago
此拉取请求重构并增强了插件存储功能及其相关的测试用例。更改的重点是改进代码组织、可读性以及插件管理操作的测试覆盖率。
更改 | 详情 | 文件 |
---|---|---|
重构插件存储测试用例 |
|
tests/builtin_plugins/plugin_store/test_plugin_store.py tests/builtin_plugins/plugin_store/test_add_plugin.py tests/builtin_plugins/plugin_store/test_update_plugin.py tests/builtin_plugins/plugin_store/test_search_plugin.py tests/builtin_plugins/plugin_store/test_remove_plugin.py tests/builtin_plugins/plugin_store/utils.py |
增强插件存储功能 |
|
zhenxun/builtin_plugins/plugin_store/data_source.py |
重构 auto_update 测试中的实用函数 |
|
tests/builtin_plugins/auto_update/test_check_update.py |
小的改进和修复 |
|
tests/conftest.py |
@sourcery-ai review
Sourcery的总结
重构插件商店测试用例和实用函数,增强代码的可维护性和测试覆盖率。改进插件管理逻辑,以处理重新安装和未安装插件更新等边缘情况。
增强功能:
测试:
Original summary in English
## Summary by Sourcery Refactor plugin store test cases and utility functions, enhancing code maintainability and test coverage. Improve plugin management logic to handle edge cases such as reinstallation and updates for non-installed plugins. Enhancements: - Refactor utility functions for adding files and folders to tar and zip archives, improving code readability and maintainability. - Improve plugin management logic to prevent reinstallation of already installed plugins and handle updates for non-installed plugins. Tests: - Add comprehensive test cases for plugin store functionalities, including adding, updating, removing, and searching plugins. - Refactor existing test cases to improve clarity and coverage, ensuring robust testing of plugin store operations.