diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-29 14:51:23 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-29 14:51:23 +0400 |
commit | 8542d2efee86131350736a9be96713551e01f6ed (patch) | |
tree | 070a7a5693766e2a9e7ad31782f59d224c7dac4e /test/support | |
parent | 1bfd8528bbc71c8c34253eb245de7df498064fb4 (diff) | |
parent | 0e0a6aef70fc0cac1f9176e4f50a7fe4930242fa (diff) | |
download | pleroma-8542d2efee86131350736a9be96713551e01f6ed.tar.gz pleroma-8542d2efee86131350736a9be96713551e01f6ed.zip |
Merge remote-tracking branch 'origin/develop' into feature/local-only-scope
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/conn_case.ex | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index 9316a82e4..47cb65a80 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -112,28 +112,6 @@ defmodule Pleroma.Web.ConnCase do defp json_response_and_validate_schema(conn, _status) do flunk("Response schema not found for #{conn.method} #{conn.request_path} #{conn.status}") end - - defp ensure_federating_or_authenticated(conn, url, user) do - initial_setting = Config.get([:instance, :federating]) - on_exit(fn -> Config.put([:instance, :federating], initial_setting) end) - - Config.put([:instance, :federating], false) - - conn - |> get(url) - |> response(403) - - conn - |> assign(:user, user) - |> get(url) - |> response(200) - - Config.put([:instance, :federating], true) - - conn - |> get(url) - |> response(200) - end end end |