2021-08-18 20:18:39 +02:00
|
|
|
package query
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2021-08-20 00:10:26 +02:00
|
|
|
func TestRegisteredUsers(t *testing.T) {
|
|
|
|
t.Run("success", func(t *testing.T) {
|
|
|
|
users := RegisteredUsers()
|
|
|
|
|
2021-08-18 20:18:39 +02:00
|
|
|
for _, user := range users {
|
2021-11-12 09:10:15 +01:00
|
|
|
t.Logf("user: %v, %s, %s, %s", user.ID, user.UserUID, user.Username(), user.FullName)
|
2021-08-18 20:18:39 +02:00
|
|
|
}
|
2021-08-20 00:10:26 +02:00
|
|
|
|
|
|
|
t.Logf("user count: %v", len(users))
|
|
|
|
|
|
|
|
assert.GreaterOrEqual(t, len(users), 3)
|
2021-08-18 20:18:39 +02:00
|
|
|
})
|
|
|
|
}
|