2020-01-05 14:18:40 +01:00
|
|
|
package query
|
2019-12-28 20:24:20 +01:00
|
|
|
|
|
|
|
import (
|
2020-01-27 17:19:47 +01:00
|
|
|
"github.com/stretchr/testify/assert"
|
2019-12-28 20:24:20 +01:00
|
|
|
"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)
|
|
|
|
|
2020-01-27 17:19:47 +01:00
|
|
|
assert.Equal(t, "Flower", categories[0].Title)
|
2019-12-28 20:24:20 +01:00
|
|
|
}
|