finish app develop
This commit is contained in:
14
tests/test_skill_loader.py
Normal file
14
tests/test_skill_loader.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user