photoprism/internal/query/account_uploads_test.go
Michael Mayer e3bb8b19dd Routing: Prefix frontend UI routes with /library #840 #2466
Also improves migrations and updates the db schema docs.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-15 21:54:11 +02:00

24 lines
426 B
Go

package query
import (
"testing"
"github.com/photoprism/photoprism/internal/entity"
"github.com/stretchr/testify/assert"
)
func TestAccountUploads(t *testing.T) {
a := entity.Service{ID: 1, SyncRaw: false}
t.Run("find uploads", func(t *testing.T) {
results, err := AccountUploads(a, 10)
if err != nil {
t.Fatal(err)
}
// t.Logf("uploads: %+v", results)
assert.GreaterOrEqual(t, len(results), 1)
})
}