f5a8c5a45d
Signed-off-by: Michael Mayer <michael@photoprism.app>
21 lines
399 B
Go
21 lines
399 B
Go
package query
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRegisteredUsers(t *testing.T) {
|
|
t.Run("success", func(t *testing.T) {
|
|
users := RegisteredUsers()
|
|
|
|
for _, user := range users {
|
|
t.Logf("user: %v, %s, %s, %s", user.ID, user.UserUID, user.Name(), user.DisplayName)
|
|
}
|
|
|
|
t.Logf("user count: %v", len(users))
|
|
|
|
assert.GreaterOrEqual(t, len(users), 3)
|
|
})
|
|
}
|