From 042b3e7d65c79e9bbaa17e901caca4c1dde4b0d7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 19 Apr 2026 22:25:28 +0300 Subject: v4: fix image attribution and registry config --- internal/image/gemini_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/image/gemini_test.go') diff --git a/internal/image/gemini_test.go b/internal/image/gemini_test.go index 8c34c6e..bb3affe 100644 --- a/internal/image/gemini_test.go +++ b/internal/image/gemini_test.go @@ -188,6 +188,12 @@ func TestGeminiProvider_Search_GeneratedPromptFlow(t *testing.T) { if !strings.Contains(gotPrompt, "Scene: A bright apple sits centered on a wooden table.") { t.Fatalf("Prompt = %q, want generated scene in prompt", gotPrompt) } + if result.Attribution == "" { + t.Fatal("expected result attribution to be populated") + } + if got := client.GetAttribution(&result); got != result.Attribution { + t.Fatalf("GetAttribution() = %q, want result attribution %q", got, result.Attribution) + } reader, err := client.Download(context.Background(), result.URL) if err != nil { -- cgit v1.2.3