diff options
author | feld <feld@feld.me> | 2020-03-11 15:10:09 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2020-03-11 15:10:09 +0000 |
commit | f92c447bbc38db417beb2ac505c17649c6de01d2 (patch) | |
tree | 34d675fdfcdab56c5dcd88caba96a8cad77272d1 /test/support | |
parent | 9dbf493b65826d3421f568eb18651deeba8276e2 (diff) | |
parent | cc98d010edc444e260c81ac9f264a27d9afd5daf (diff) | |
download | pleroma-f92c447bbc38db417beb2ac505c17649c6de01d2.tar.gz |
Merge branch 'relay-list-change' into 'develop'
Relay list shows hosts without accepted follow
See merge request pleroma/pleroma!2240
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index d46887865..e72638814 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1277,6 +1277,10 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{status: 404, body: ""}} end + def get("https://relay.mastodon.host/actor", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/relay/relay.json")}} + end + def get(url, query, body, headers) do {:error, "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ @@ -1289,6 +1293,10 @@ defmodule HttpRequestMock do def post(url, query \\ [], body \\ [], headers \\ []) + def post("https://relay.mastodon.host/inbox", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: ""}} + end + def post("http://example.org/needs_refresh", _, _, _) do {:ok, %Tesla.Env{ |