diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 21:18:05 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 21:18:05 +0300 |
commit | 3c3bba0b7c65187b3270ef3402442cf870a55198 (patch) | |
tree | 1727e2999f8e957fc96a8fbd6e4bd1dd7676884a /test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs | |
parent | c0d572d0bf842fae08c609aa58c82554bee3a263 (diff) | |
download | pleroma-3c3bba0b7c65187b3270ef3402442cf870a55198.tar.gz pleroma-3c3bba0b7c65187b3270ef3402442cf870a55198.zip |
fix ScheduledActivity
Diffstat (limited to 'test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs b/test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs index 5f3a376be..478631a12 100644 --- a/test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs +++ b/test/web/mastodon_api/controllers/scheduled_activity_controller_test.exs @@ -11,6 +11,8 @@ defmodule Pleroma.Web.MastodonAPI.ScheduledActivityControllerTest do import Pleroma.Factory import Ecto.Query + clear_config([ScheduledActivity, :enabled]) + test "shows scheduled activities", %{conn: conn} do user = insert(:user) scheduled_activity_id1 = insert(:scheduled_activity, user: user).id |> to_string() @@ -68,6 +70,7 @@ defmodule Pleroma.Web.MastodonAPI.ScheduledActivityControllerTest do end test "updates a scheduled activity", %{conn: conn} do + Pleroma.Config.put([ScheduledActivity, :enabled], true) user = insert(:user) scheduled_at = @@ -120,6 +123,7 @@ defmodule Pleroma.Web.MastodonAPI.ScheduledActivityControllerTest do end test "deletes a scheduled activity", %{conn: conn} do + Pleroma.Config.put([ScheduledActivity, :enabled], true) user = insert(:user) {:ok, scheduled_activity} = |