[#923] OAuth consumer controller tests. Misc. improvements.

This commit is contained in:
Ivan Tashkinov 2019-04-04 22:41:03 +03:00
commit f7cd9131d4
5 changed files with 344 additions and 8 deletions

View file

@ -257,4 +257,20 @@ defmodule Pleroma.Factory do
user: build(:user)
}
end
def registration_factory do
user = insert(:user)
%Pleroma.Registration{
user: user,
provider: "twitter",
uid: "171799000",
info: %{
"name" => "John Doe",
"email" => "john@doe.com",
"nickname" => "johndoe",
"description" => "My bio"
}
}
end
end