Files
Agent-System-Backend/internal/settings/settings_test.go
T
weichenandCursor 6533f0fa88 Add professional standards for every agent deliverable
Why: Generated files kept Word's default theme, US Letter pages,
hand-typed bullets and empty sections. Recipes only showed library
calls, the prompt had no craft standard, and seeded skills could not
be upgraded once written.

Evidence: go test ./... passed. The house-style suite covers three
themes across docx, pptx and xlsx, and rejects a document that repeats
the diagnosed layout failures. lint on the sample minutes exits 1.

Impact: Every run gets a resident quality standard. Office files use
house-style (switchable themes, templates, imitation) and must pass
lint. Skill seeding upgrades untouched builtins and keeps user edits.
Uploads land in inputs/, and the default style is a setting.

Refs: feature/agent-professional-deliverables
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 08:16:58 +00:00

26 lines
785 B
Go

package settings
import "testing"
func TestDeliverableSettingsPresent(t *testing.T) {
defaults := SystemDefaults()
block, ok := defaults["deliverables"].(map[string]any)
if !ok || block["style"] != "modern" || block["accentColor"] != "" || block["templateArtifactId"] != "" {
t.Fatalf("defaults = %#v", defaults["deliverables"])
}
var style, accent, template bool
for _, desc := range Schema() {
switch desc.Key {
case "deliverables.style":
style = len(desc.Options) == 3 && desc.Options[0] == "modern"
case "deliverables.accentColor":
accent = true
case "deliverables.templateArtifactId":
template = true
}
}
if !style || !accent || !template {
t.Fatalf("schema missing deliverable keys: style=%v accent=%v template=%v", style, accent, template)
}
}