This commit is contained in:
@@ -81,6 +81,13 @@ func TestBuildArtgridQueriesIncludesArtlistCanonicalDomain(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsMatchingArtgridClipPageRejectsHomepage(t *testing.T) {
|
||||
html := `<html><head><meta property="og:url" content="https://artgrid.io/"><link rel="canonical" href="https://artgrid.io/"></head></html>`
|
||||
if isMatchingArtgridClipPage(html, "114756") {
|
||||
t.Fatal("expected generic Artgrid homepage HTML to be rejected as a clip page")
|
||||
}
|
||||
}
|
||||
|
||||
func TestGeminiCandidateLimitNeverExceedsCandidates(t *testing.T) {
|
||||
if got := GeminiCandidateLimit(9); got != 9 {
|
||||
t.Fatalf("expected Gemini limit to stay within candidate count, got %d", got)
|
||||
|
||||
Reference in New Issue
Block a user