feat(knowledge): LAMP 操作教程种子数据(P0)

This commit is contained in:
weijuesen
2026-08-12 11:31:17 +08:00
parent 93aa4ee19b
commit 0d3124fe39
2 changed files with 19 additions and 0 deletions
@@ -47,3 +47,15 @@ func TestSeedKnowledgeArticlesHasAIGuide(t *testing.T) {
t.Error("缺少 AI 结果解读文章(kind=ai_guide")
}
}
func TestSeedKnowledgeArticlesHasLAMPGuid(t *testing.T) {
found := false
for _, a := range SeedKnowledgeArticles {
if a.Kind == "lamp_guide" && a.Title != "" && a.Content != "" {
found = true
}
}
if !found {
t.Error("缺少 LAMP 操作教程文章(kind=lamp_guide")
}
}