← Về thư mục
scripts/test_check_version_consistency.py
- _run · function · L15-L16 — def _run(root: Path) -> subprocess.CompletedProcess
- _write_skill · function · L19-L40 — def _write_skill(root: Path, name: str, version: str) -> None
- _write_claude_md · function · L43-L87 — def _write_claude_md( root: Path, suite_version: str, table_rows: list[tuple[str, str]], last_updated: str | None = "2026-04-22", key_additions: str | None = "derive", ) -> None
- _write_changelog · function · L90-L114 — def _write_changelog( root: Path, latest_version: str, prior_versions: list[str] | None = None, latest_body: str | None = None, latest_date: str = "2026-04-22", ) -> None
- _write_plugin_manifests · function · L117-L135 — def _write_plugin_manifests( root: Path, version: str, description: str | None = None ) -> None
- _write_readme · function · L138-L151 — def _write_readme(root: Path, badge_version: str) -> None
- _write_docs · function · L154-L176 — def _write_docs( root: Path, en_h2: list[str], zh_h2: list[str] | None = None, extra_version_strings: list[str] | None = None, ) -> None
- _write_aligned_fixture · function · L179-L215 — def _write_aligned_fixture( root: Path, last_updated: str | None = "2026-04-22", key_additions: str | None = "derive", ) -> None
- _write_aligned_fixture_v351 · function · L218-L237 — def _write_aligned_fixture_v351(root: Path) -> None
- TestVersionConsistency · class · L240-L786 — class TestVersionConsistency(unittest.TestCase)
- test_all_aligned_passes · method · L241-L249 — def test_all_aligned_passes(self) -> None
- test_all_aligned_v351_passes · method · L251-L260 — def test_all_aligned_v351_passes(self) -> None
- test_table_version_drift_fails · method · L262-L272 — def test_table_version_drift_fails(self) -> None
- test_suite_version_vs_changelog_drift_fails · method · L274-L284 — def test_suite_version_vs_changelog_drift_fails(self) -> None
- test_plugin_json_version_drift_fails · method · L286-L298 — def test_plugin_json_version_drift_fails(self) -> None
- test_marketplace_version_drift_fails · method · L300-L316 — def test_marketplace_version_drift_fails(self) -> None
- test_pipeline_version_vs_suite_drift_fails · method · L318-L339 — def test_pipeline_version_vs_suite_drift_fails(self) -> None
- test_skill_missing_frontmatter_fails · method · L341-L351 — def test_skill_missing_frontmatter_fails(self) -> None
- test_skill_listed_in_table_but_missing_on_disk_fails · method · L353-L361 — def test_skill_listed_in_table_but_missing_on_disk_fails(self) -> None
- test_missing_suite_version_in_claude_md_fails · method · L363-L389 — def test_missing_suite_version_in_claude_md_fails(self) -> None
- test_four_segment_suite_vs_changelog_drift_fails · method · L391-L421 — def test_four_segment_suite_vs_changelog_drift_fails(self) -> None
- test_five_segment_changelog_does_not_silently_fall_through · method · L423-L458 — def test_five_segment_changelog_does_not_silently_fall_through(self) -> None
- test_invalid_table_row_token_is_reported · method · L460-L495 — def test_invalid_table_row_token_is_reported(self) -> None
- test_invalid_suite_token_is_reported · method · L497-L523 — def test_invalid_suite_token_is_reported(self) -> None
- test_four_segment_table_row_drift_fails · method · L525-L559 — def test_four_segment_table_row_drift_fails(self) -> None
- test_five_segment_token_rejected_as_non_canonical · method · L561-L598 — def test_five_segment_token_rejected_as_non_canonical(self) -> None
- test_readme_badge_drift_fails · method · L601-L610 — def test_readme_badge_drift_fails(self) -> None
- test_readme_missing_fails · method · L612-L619 — def test_readme_missing_fails(self) -> None
- test_docs_future_version_fails · method · L622-L635 — def test_docs_future_version_fails(self) -> None
- test_docs_at_suite_version_passes_inv6 · method · L637-L649 — def test_docs_at_suite_version_passes_inv6(self) -> None
- test_docs_superpowers_future_version_exempt_inv6 · method · L651-L675 — def test_docs_superpowers_future_version_exempt_inv6(self) -> None
- test_zhtw_version_bearing_heading_missing_fails · method · L678-L691 — def test_zhtw_version_bearing_heading_missing_fails(self) -> None
- test_zhtw_version_bearing_heading_drift_fails · method · L693-L705 — def test_zhtw_version_bearing_heading_drift_fails(self) -> None
- test_zhtw_plain_heading_asymmetry_allowed · method · L707-L714 — def test_zhtw_plain_heading_asymmetry_allowed(self) -> None
- test_docs_two_segment_version_is_skipped · method · L716-L735 — def test_docs_two_segment_version_is_skipped(self) -> None
- test_docs_prerelease_token_is_skipped · method · L737-L754 — def test_docs_prerelease_token_is_skipped(self) -> None
- test_zhtw_no_english_sibling_fails · method · L756-L766 — def test_zhtw_no_english_sibling_fails(self) -> None
- test_zhtw_duplicate_same_version_heading_drop_fails · method · L768-L786 — def test_zhtw_duplicate_same_version_heading_drop_fails(self) -> None
- TestAgentCountClaim · class · L789-L889 — class TestAgentCountClaim(unittest.TestCase)
- _write_agents · method · L794-L800 — def _write_agents(root: Path, names: list[str]) -> None
- test_agent_claim_drift_fails · method · L802-L813 — def test_agent_claim_drift_fails(self) -> None
- test_agent_claim_matching_passes · method · L815-L827 — def test_agent_claim_matching_passes(self) -> None
- test_agent_claim_symlink_alias_not_double_counted · method · L829-L849 — def test_agent_claim_symlink_alias_not_double_counted(self) -> None
- test_agent_claim_materialized_mirror_not_double_counted · method · L851-L873 — def test_agent_claim_materialized_mirror_not_double_counted(self) -> None
- test_no_agent_claim_skips · method · L875-L889 — def test_no_agent_claim_skips(self) -> None
- TestChangelogBodyLength · class · L892-L978 — class TestChangelogBodyLength(unittest.TestCase)
- test_short_body_fails · method · L896-L904 — def test_short_body_fails(self) -> None
- test_empty_body_fails · method · L906-L913 — def test_empty_body_fails(self) -> None
- test_prior_entry_body_not_gated · method · L915-L925 — def test_prior_entry_body_not_gated(self) -> None
- test_fenced_h2_inside_body_not_a_terminator · method · L927-L952 — def test_fenced_h2_inside_body_not_a_terminator(self) -> None
- test_fenced_bracketed_h2_not_a_terminator · method · L954-L978 — def test_fenced_bracketed_h2_not_a_terminator(self) -> None
- TestLastUpdatedFreshness · class · L981-L1064 — class TestLastUpdatedFreshness(unittest.TestCase)
- test_stale_last_updated_fails · method · L986-L993 — def test_stale_last_updated_fails(self) -> None
- test_boundary_seven_days_passes · method · L995-L1003 — def test_boundary_seven_days_passes(self) -> None
- test_missing_last_updated_fails · method · L1005-L1011 — def test_missing_last_updated_fails(self) -> None
- test_changelog_missing_date_fails · method · L1013-L1029 — def test_changelog_missing_date_fails(self) -> None
- test_impossible_changelog_date_reports_not_crashes · method · L1031-L1041 — def test_impossible_changelog_date_reports_not_crashes(self) -> None
- test_overlong_changelog_date_not_accepted_as_prefix · method · L1043-L1053 — def test_overlong_changelog_date_not_accepted_as_prefix(self) -> None
- test_non_iso_last_updated_reports_not_crashes · method · L1055-L1064 — def test_non_iso_last_updated_reports_not_crashes(self) -> None
- TestKeyAdditionsAlignment · class · L1067-L1115 — class TestKeyAdditionsAlignment(unittest.TestCase)
- test_key_additions_drift_fails · method · L1072-L1078 — def test_key_additions_drift_fails(self) -> None
- test_key_additions_missing_fails · method · L1080-L1086 — def test_key_additions_missing_fails(self) -> None
- test_three_segment_heading_match_passes · method · L1088-L1096 — def test_three_segment_heading_match_passes(self) -> None
- test_older_headings_below_newest_allowed · method · L1098-L1115 — def test_older_headings_below_newest_allowed(self) -> None
- TestTagMatch · class · L1118-L1171 — class TestTagMatch(unittest.TestCase)
- test_matching_tag_passes · method · L1122-L1130 — def test_matching_tag_passes(self) -> None
- test_mismatched_tag_fails · method · L1132-L1139 — def test_mismatched_tag_fails(self) -> None
- test_tag_without_v_prefix_matches · method · L1141-L1150 — def test_tag_without_v_prefix_matches(self) -> None
- test_tag_supplied_but_suite_version_missing_fails · method · L1152-L1171 — def test_tag_supplied_but_suite_version_missing_fails(self) -> None