Add scheduled activities
This commit is contained in:
parent
876965a7e7
commit
7bf622ce73
8 changed files with 284 additions and 0 deletions
|
|
@ -23,6 +23,14 @@ defmodule Pleroma.Factory do
|
|||
}
|
||||
end
|
||||
|
||||
def scheduled_activity_factory do
|
||||
%Pleroma.ScheduledActivity{
|
||||
user: build(:user),
|
||||
scheduled_at: NaiveDateTime.add(NaiveDateTime.utc_now(), :timer.minutes(60), :millisecond),
|
||||
params: build(:note) |> Map.from_struct() |> Map.get(:data)
|
||||
}
|
||||
end
|
||||
|
||||
def note_factory(attrs \\ %{}) do
|
||||
text = sequence(:text, &"This is :moominmamma: note #{&1}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue