photoprism/internal/query/categories_test.go
2020-05-13 10:16:12 +02:00

18 lines
323 B
Go

package query
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCategoryLabels(t *testing.T) {
categories := CategoryLabels(1000, 0)
assert.GreaterOrEqual(t, 1, len(categories))
assert.LessOrEqual(t, 1, len(categories))
for _, r := range categories {
assert.IsType(t, CategoryLabel{}, r)
}
}