photoprism/pkg/media/report_test.go
2023-08-30 16:30:06 +02:00

16 lines
337 B
Go

package media
import (
"testing"
"github.com/photoprism/photoprism/pkg/fs"
"github.com/stretchr/testify/assert"
)
func TestReport(t *testing.T) {
m := fs.Extensions.Types(true)
r, _ := Report(m, true, true, true)
assert.GreaterOrEqual(t, len(r), 1)
r2, _ := Report(m, false, true, true)
assert.GreaterOrEqual(t, len(r2), 1)
}