This commit is contained in:
2026-08-23 20:49:40 +02:00
parent 3b678ca857
commit f3d4fb56ed
31 changed files with 3608 additions and 111 deletions
@@ -82,12 +82,13 @@ func TestResolveProductPromptTemplates_categoryWithTitleFormula(t *testing.T) {
TitleTemplate: title,
DescriptionTemplate: desc,
})
// Structured formulas trigger A1-style GPT predloga (legacy generator.php behavior).
if !strings.Contains(sys, "Si tekstopisec") {
t.Fatalf("expected A1 system when formulas set: %s", sys)
// Structured formulas trigger the A1-style template (legacy generator.php behavior);
// this fixture's instructions are English so the scaffolding renders in English.
if !strings.Contains(sys, "You are a copywriter") {
t.Fatalf("expected formula system when formulas set: %s", sys)
}
if !strings.Contains(user, "GPT predloga:") {
t.Fatalf("expected GPT predloga user: %s", user)
if !strings.Contains(user, "Product template:") {
t.Fatalf("expected formula template user: %s", user)
}
if !strings.Contains(user, "Emphasize energy class") && !strings.Contains(user, "<name>") {
t.Fatalf("expected title/desc formula in predloga: %s", user)