fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user