diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-19 22:25:28 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-19 22:25:28 +0300 |
| commit | 042b3e7d65c79e9bbaa17e901caca4c1dde4b0d7 (patch) | |
| tree | 75b08ef220df05422048b1ee88cc4f179e8b1818 /internal/image/gemini_test.go | |
| parent | 7109df3ae03661d750c263b89b2d64d476377541 (diff) | |
v4: fix image attribution and registry config
Diffstat (limited to 'internal/image/gemini_test.go')
| -rw-r--r-- | internal/image/gemini_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |
