homebox/backend/internal/mocks/factories/users.go

17 lines
328 B
Go
Raw Normal View History

2022-08-30 02:30:36 +00:00
package factories
import (
"github.com/hay-kot/homebox/backend/internal/types"
"github.com/hay-kot/homebox/backend/pkgs/faker"
2022-08-30 02:30:36 +00:00
)
func UserFactory() types.UserCreate {
f := faker.NewFaker()
return types.UserCreate{
Name: f.Str(10),
Email: f.Email(),
Password: f.Str(10),
IsSuperuser: f.Bool(),
2022-08-30 02:30:36 +00:00
}
}