photoprism/internal/query/category_test.go

19 lines
329 B
Go
Raw Normal View History

package query
import (
2020-01-27 17:19:47 +01:00
"github.com/stretchr/testify/assert"
"testing"
"github.com/photoprism/photoprism/internal/config"
)
func TestQuery_CategoryLabels(t *testing.T) {
conf := config.TestConfig()
search := New(conf.Db())
categories := search.CategoryLabels(1000, 0)
2020-01-27 17:19:47 +01:00
assert.Equal(t, "Flower", categories[0].Title)
}