photoprism/internal/query/category_test.go
Michael Mayer 96c7337fea Make tests more resilient
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-09 19:39:09 +02:00

19 lines
327 B
Go

package query
import (
"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)
assert.GreaterOrEqual(t, 1, len(categories))
}