photoprism/internal/query/subject_search_test.go
2021-09-02 16:12:31 +02:00

20 lines
412 B
Go

package query
import (
"testing"
"github.com/photoprism/photoprism/internal/form"
"github.com/photoprism/photoprism/internal/entity"
"github.com/stretchr/testify/assert"
)
func TestSubjectSearch(t *testing.T) {
t.Run("FindAll", func(t *testing.T) {
results, err := SubjectSearch(form.SubjectSearch{Type: entity.SubjectPerson})
assert.NoError(t, err)
assert.LessOrEqual(t, 3, len(results))
})
}