X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsupport%2Ffactory.ex;h=e3f797f64c16b4abb0dcc8f05ada8cd8a811479f;hb=652cc6ba4b7a0494cc96ef4a9bfcaa3b5e5be60e;hp=74f292a1d4cefcd521815dd86409efc3e2af6243;hpb=059005ff829c0313c62ddf5fbcd95f8892920228;p=akkoma diff --git a/test/support/factory.ex b/test/support/factory.ex index 74f292a1d..e3f797f64 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -280,26 +280,6 @@ defmodule Pleroma.Factory do } end - def websub_subscription_factory do - %Pleroma.Web.Websub.WebsubServerSubscription{ - topic: "http://example.org", - callback: "http://example.org/callback", - secret: "here's a secret", - valid_until: NaiveDateTime.add(NaiveDateTime.utc_now(), 100), - state: "requested" - } - end - - def websub_client_subscription_factory do - %Pleroma.Web.Websub.WebsubClientSubscription{ - topic: "http://example.org", - secret: "here's a secret", - valid_until: nil, - state: "requested", - subscribers: [] - } - end - def oauth_app_factory do %Pleroma.Web.OAuth.App{ client_name: "Some client", @@ -396,4 +376,13 @@ defmodule Pleroma.Factory do ) } end + + def marker_factory do + %Pleroma.Marker{ + user: build(:user), + timeline: "notifications", + lock_version: 0, + last_read_id: "1" + } + end end