Conversation: Add Conversations and Participations.

This commit is contained in:
lain 2019-04-10 09:34:53 +02:00
commit d1da6b155a
6 changed files with 127 additions and 0 deletions

View file

@ -5,6 +5,12 @@
defmodule Pleroma.Factory do
use ExMachina.Ecto, repo: Pleroma.Repo
def conversation_factory do
%Pleroma.Conversation{
ap_id: sequence(:ap_id, &"https://some_conversation/#{&1}")
}
end
def user_factory do
user = %Pleroma.User{
name: sequence(:name, &"Test テスト User #{&1}"),