photoprism/internal/search/subjects_test.go
2021-09-18 15:32:39 +02:00

19 lines
436 B
Go

package search
import (
"testing"
"github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/internal/form"
"github.com/stretchr/testify/assert"
)
func TestSubjects(t *testing.T) {
t.Run("FindAll", func(t *testing.T) {
results, err := Subjects(form.SubjectSearch{Type: entity.SubjPerson})
assert.NoError(t, err)
// t.Logf("Subjects: %#v", results)
assert.LessOrEqual(t, 3, len(results))
})
}