Replace niche templates with simple starters and direct template submission
This commit is contained in:
@@ -23,10 +23,11 @@ func TestReadmeThreeStageExampleIsValid(t *testing.T) {
|
||||
|
||||
func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
|
||||
items := examples.Catalog()
|
||||
if len(items) != 11 {
|
||||
if len(items) != 5 {
|
||||
t.Fatal("unexpected catalog size", len(items))
|
||||
}
|
||||
seen := map[string]bool{}
|
||||
wantStages := map[string]int{"task": 1, "summary": 1, "review": 1, "research": 2, "three-stage": 3}
|
||||
for _, item := range items {
|
||||
if seen[item.Key] || item.Description == "" || item.Name == "" {
|
||||
t.Fatal("invalid template metadata", item.Key)
|
||||
@@ -39,5 +40,11 @@ func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
|
||||
if (graph.Settings != nil) != item.Scheduled {
|
||||
t.Fatal("missing schedule warning", item.Key)
|
||||
}
|
||||
if graph.Settings != nil || len(graph.Stages) > 3 {
|
||||
t.Fatal("starters must be simple and manual-only", item.Key)
|
||||
}
|
||||
if len(graph.Stages) != wantStages[item.Key] {
|
||||
t.Fatal("unexpected/non-generic catalog entry", item.Key)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user