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/activity_pub | |
| parent | 3589b30ddc9d0c23ca6f00264cff05e53be1b270 (diff) | |
| download | pleroma-abe2e8881f946aafc2012edd43373c22837387af.tar.gz pleroma-abe2e8881f946aafc2012edd43373c22837387af.zip | |
Testing: Don't federate in testing.
Diffstat (limited to 'test/web/activity_pub')
| -rw-r--r-- | test/web/activity_pub/activity_pub_controller_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index 8b3233729..5a8a67155 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -15,6 +15,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do setup_all do Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) + + 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 |
