46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
import unittest
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
README = ROOT / "skills" / "README.md"
|
|
|
|
|
|
class SkillsReadmeTests(unittest.TestCase):
|
|
def test_readme_describes_first_party_and_thirdparty_skill_groups(self):
|
|
text = README.read_text(encoding="utf-8")
|
|
|
|
for name in ("commit-message", "gitea-fix-ci", "style-cleanup"):
|
|
self.assertIn(name, text)
|
|
|
|
for name in (
|
|
"brainstorming",
|
|
"executing-plans",
|
|
"systematic-debugging",
|
|
"test-driven-development",
|
|
"requesting-code-review",
|
|
"receiving-code-review",
|
|
"ui-ux-pro-max",
|
|
"karpathy-guidelines",
|
|
):
|
|
self.assertIn(name, text)
|
|
|
|
def test_readme_explains_suite_membership_for_registered_sources(self):
|
|
text = README.read_text(encoding="utf-8")
|
|
|
|
self.assertIn("brooks-lint", text)
|
|
self.assertIn("brooks-review", text)
|
|
self.assertIn("brooks-audit", text)
|
|
self.assertIn("brooks-debt", text)
|
|
self.assertIn("brooks-test", text)
|
|
self.assertIn("_shared", text)
|
|
|
|
self.assertIn("codebase-recon", text)
|
|
self.assertIn("pathfinding", text)
|
|
self.assertIn("codebase-migrate", text)
|
|
self.assertIn("已登记待同步", text)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|