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

17 lines
325 B
Go
Raw Permalink Normal View History

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