diff options
author | lain <lain@soykaf.club> | 2019-07-09 15:30:51 +0900 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-07-09 15:30:51 +0900 |
commit | abe2e8881f946aafc2012edd43373c22837387af (patch) | |
tree | 647e81805ba66f92d0453405c486365d45a20619 /test/web/websub/websub_controller_test.exs | |
parent | 3589b30ddc9d0c23ca6f00264cff05e53be1b270 (diff) | |
download | pleroma-abe2e8881f946aafc2012edd43373c22837387af.tar.gz pleroma-abe2e8881f946aafc2012edd43373c22837387af.zip |
Testing: Don't federate in testing.
Diffstat (limited to 'test/web/websub/websub_controller_test.exs')
-rw-r--r-- | test/web/websub/websub_controller_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/websub/websub_controller_test.exs b/test/web/websub/websub_controller_test.exs index f79745d58..aa7262beb 100644 --- a/test/web/websub/websub_controller_test.exs +++ b/test/web/websub/websub_controller_test.exs @@ -9,6 +9,16 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do alias Pleroma.Web.Websub alias Pleroma.Web.Websub.WebsubClientSubscription + setup_all do + config_path = [:instance, :federating] + initial_setting = Pleroma.Config.get(config_path) + + Pleroma.Config.put(config_path, true) + on_exit(fn -> Pleroma.Config.put(config_path, initial_setting) end) + + :ok + end + test "websub subscription request", %{conn: conn} do user = insert(:user) |