photoprism/internal/query/category_test.go
2020-01-27 17:19:47 +01:00

18 lines
350 B
Go

package query
import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/photoprism/photoprism/internal/config"
)
func TestRepo_CategoryLabels(t *testing.T) {
conf := config.TestConfig()
search := New(conf.OriginalsPath(), conf.Db())
categories := search.CategoryLabels(1000, 0)
assert.Equal(t, "Flower", categories[0].Title)
}