photoprism/internal/commands/find_test.go
Michael Mayer 699ad5b50c CI: Apply Go linter recommendations to "internal/commands" package #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-22 17:55:26 +01:00

19 lines
413 B
Go

package commands
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestFindCommand(t *testing.T) {
t.Run("All", func(t *testing.T) {
// Run command with test context.
output, err := RunWithTestContext(FindCommand, []string{"find", "--csv"})
// Check command output for plausibility.
// t.Logf(output)
assert.NoError(t, err)
assert.Contains(t, output, "File Name;Mime Type;")
})
}