From dc45fe6db940dbfb0469927be123979722ddac9a Mon Sep 17 00:00:00 2001 From: salmonumbrella <182032677+salmonumbrella@users.noreply.github.com> Date: Sat, 31 Jan 2026 02:44:46 -0800 Subject: [PATCH] test(drive): cover invalid download format --- internal/cmd/execute_drive_download_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/cmd/execute_drive_download_test.go b/internal/cmd/execute_drive_download_test.go index 110d20a..480ac08 100644 --- a/internal/cmd/execute_drive_download_test.go +++ b/internal/cmd/execute_drive_download_test.go @@ -159,7 +159,6 @@ func TestExecute_DriveDownload_WithOutDir_JSON(t *testing.T) { t.Fatalf("expected file at %s: %v", wantPath, statErr) } } - func TestExecute_DriveDownload_FormatRejected_NonGoogle(t *testing.T) { origNew := newDriveService origDownload := driveDownload @@ -202,13 +201,13 @@ func TestExecute_DriveDownload_FormatRejected_NonGoogle(t *testing.T) { }, nil } - outPath := filepath.Join(t.TempDir(), "out.pdf") + outPath := filepath.Join(t.TempDir(), "out.html") var execErr error _ = captureStderr(t, func() { execErr = Execute([]string{ "--account", "a@b.com", "drive", "download", "id1", - "--format", "pdf", + "--format", "html", "--out", outPath, }) })