photoprism/internal/query/users_test.go
Michael Mayer f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00

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)
})
}