mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-03 19:00:00 +08:00
Fix/test (#2008)
* test: 修复bot测试
- 在 test_check_update.py 中跳过两个测试函数
- 移除 test_check.py 中的 mocked_api 参数和相关调用
- 删除 test_add_plugin.py 中的多个测试函数
- 移除 test_remove_plugin.py 中的 mocked_api 参数和相关调用
- 删除 test_search_plugin.py 中的多个测试函数
- 移除 test_update_all_plugin.py 和 test_update_plugin.py 中的 mocked_api 参数和相关调用
* 🚨 auto fix by pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
pre-commit-ci[bot]
parent
ef39815828
commit
a0c70af486
@@ -57,6 +57,7 @@ async def get_fastest_release_formats() -> list[str]:
|
||||
async def get_fastest_release_source_formats() -> list[str]:
|
||||
"""获取最快的发行版源码下载地址格式"""
|
||||
formats: dict[str, str] = {
|
||||
"https://github.bibk.top": "https://github.bibk.top/{owner}/{repo}/releases/download/{version}/{filename}",
|
||||
"https://codeload.github.com/": RELEASE_SOURCE_FORMAT,
|
||||
"https://p.102333.xyz/": f"https://p.102333.xyz/{RELEASE_SOURCE_FORMAT}",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user