15 lines
569 B
Python
15 lines
569 B
Python
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
from app.skill_loader import load_skill_catalog
|
||
|
|
|
||
|
|
|
||
|
|
def test_load_skill_catalog_reads_index_and_skill_files() -> None:
|
||
|
|
skills = load_skill_catalog(Path("GJB438C-2021_prd_skills"))
|
||
|
|
|
||
|
|
assert len(skills) >= 30
|
||
|
|
skill_names = {skill.slug for skill in skills}
|
||
|
|
assert "gjb438c-software-requirements-spec-structure" in skill_names
|
||
|
|
target = next(skill for skill in skills if skill.slug == "gjb438c-software-requirements-spec-structure")
|
||
|
|
assert "软件需求规格说明" in target.content
|
||
|
|
assert target.path.name == "SKILL.md"
|