Keep source names out of identifier clarification
CI / test (push) Successful in 1m15s
CI / test (pull_request) Successful in 1m37s

This commit is contained in:
m
2026-08-26 03:34:00 +03:00
parent 32457f7142
commit 43836af511
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func TestResearchReplyRejectsGenericLandingPageForConcreteIdentifier(t *testing.
Excerpt: epistemics.SourceExcerpt{Text: "Широкий ассортимент товаров и услуг."},
}}}
reply, backed := renderResearchReply("на WB бренд marka-wear", result, nil)
if backed || !strings.Contains(reply, "marka-wear") || !strings.Contains(reply, "уточните написание") {
if backed || !strings.Contains(reply, "marka-wear") || strings.Contains(reply, "wildberries") || !strings.Contains(reply, "уточните написание") {
t.Fatalf("generic page was presented as a brand result: %q", reply)
}
}