Repository navigation
fix(test): 来源数量断言与仓库实际(26)对齐 - #1
Open
Mosquito1123 wants to merge 1 commit into
Open
Mosquito1123 wants to merge 1 commit into
Mosquito1123 wants to merge 1 commit into
Conversation
test_rules_validate 断言 source_count >= 30,但仓库实际为 26: rules/sources.yaml 共 26 条来源,validate_repo.py 输出 26, README.md / README.en.md 也均标注「来源 26」。 该断言与其余文件同在初始发布 commit 中,应为笔误,导致 pytest 与 CI(.github/workflows/validate.yml)自 v1.0.0 起一直失败。 修正为 >= 26 后 pytest 9 passed,与 README 的预期一致。 若本意是要求来源数 >= 30,则应改为补充来源,而非放宽断言。
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.
变更说明 / Summary
test_rules_validate断言source_count >= 30,但仓库实际为 26:rules/sources.yaml共 26 条来源,validate_repo.py输出 26,README.md/README.en.md也均标注「来源 26」。该断言与其余文件同在初始发布 commit 中,应为笔误,导致pytest与 CI(.github/workflows/validate.yml)自 v1.0.0 起一直失败。本 PR 将断言修正为
>= 26,pytest变为 9 passed,与 README 的预期一致。类型 / Type
检查项 / Checklist
python scripts/validate_repo.py通过 / passespytest通过 / passespython scripts/check_links.py通过 / passes