2021-09-18 15:32:39 +02:00
|
|
|
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) {
|
2021-09-18 20:41:30 +02:00
|
|
|
results, err := Faces(form.FaceSearch{Unknown: "yes", Markers: true})
|
2021-09-18 15:32:39 +02:00
|
|
|
assert.NoError(t, err)
|
|
|
|
t.Logf("Faces: %#v", results)
|
|
|
|
assert.LessOrEqual(t, 1, len(results))
|
|
|
|
})
|
|
|
|
}
|