mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-26 07:52:17 +00:00
19 lines
352 B
Elixir
19 lines
352 B
Elixir
|
defmodule Pleroma.Builders.UserBuilder do
|
||
|
alias Pleroma.{User, Repo}
|
||
|
|
||
|
def build do
|
||
|
%User{
|
||
|
email: "test@example.org",
|
||
|
name: "Test Name",
|
||
|
nickname: "testname",
|
||
|
password_hash: Comeonin.Pbkdf2.hashpwsalt("test"),
|
||
|
bio: "A tester.",
|
||
|
ap_id: "some id"
|
||
|
}
|
||
|
end
|
||
|
|
||
|
def insert do
|
||
|
Repo.insert(build())
|
||
|
end
|
||
|
end
|