photoprism/internal/search/faces_test.go
2021-09-18 20:41:30 +02:00

18 lines
375 B
Go

package search
import (
"testing"
"github.com/photoprism/photoprism/internal/form"
"github.com/stretchr/testify/assert"
)
func TestFaces(t *testing.T) {
t.Run("Unknown", func(t *testing.T) {
results, err := Faces(form.FaceSearch{Unknown: "yes", Markers: true})
assert.NoError(t, err)
t.Logf("Faces: %#v", results)
assert.LessOrEqual(t, 1, len(results))
})
}