Basic status creation and retrieval.
This commit is contained in:
parent
8de523c8ae
commit
9a8850eb9e
14 changed files with 272 additions and 9 deletions
18
test/support/builders/user_builder.ex
Normal file
18
test/support/builders/user_builder.ex
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue