diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-01 19:46:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-01 19:46:16 +0300 |
| commit | 4a7c3822956fee540cac2a51538c50bbb5007dac (patch) | |
| tree | c48011a79ee9c2231899b05ed6c1bea99514d15e /internal/cli/command_test.go | |
| parent | e264a38e0a92ba451c21e64af2abf2d7fb88f919 (diff) | |
z9: update GUI Nano Banana guidance
Diffstat (limited to 'internal/cli/command_test.go')
| -rw-r--r-- | internal/cli/command_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/cli/command_test.go b/internal/cli/command_test.go index ff0570c..6c5273d 100644 --- a/internal/cli/command_test.go +++ b/internal/cli/command_test.go @@ -23,11 +23,11 @@ func TestCreateRootCommand(t *testing.T) { if !strings.Contains(cmd.Short, "Bulgarian Anki Flashcard Generator") { t.Errorf("Expected Short description to contain 'Bulgarian Anki Flashcard Generator'") } - if !strings.Contains(cmd.Long, "currently supported OpenAI image provider") { - t.Errorf("Expected Long description to describe the supported OpenAI image provider") + if !strings.Contains(cmd.Long, "uses Nano Banana for images by default") { + t.Errorf("Expected Long description to describe the Nano Banana GUI default") } - if strings.Contains(cmd.Long, "OpenAI or Gemini Nano Banana") { - t.Errorf("Long description should not imply Nano Banana runtime support") + if !strings.Contains(cmd.Long, "Use --image-api to override the image backend") { + t.Errorf("Expected Long description to explain the image backend override") } // Test that flags are set up @@ -109,8 +109,8 @@ func TestSetupFlags(t *testing.T) { if imageAPIFlag.DefValue != "openai" { t.Errorf("Expected default image-api to be openai, got %s", imageAPIFlag.DefValue) } - if imageAPIFlag.Usage != "Image source (currently openai)" { - t.Errorf("Expected image-api help to describe only the current OpenAI provider, got %q", imageAPIFlag.Usage) + if imageAPIFlag.Usage != "Image source override (GUI no-arg path defaults to Nano Banana; explicit CLI default is OpenAI)" { + t.Errorf("Expected image-api help to describe the GUI Nano Banana default and explicit CLI override, got %q", imageAPIFlag.Usage) } nanoBananaModelFlag := cmd.Flags().Lookup("nanobanana-model") |
