diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-17 14:16:23 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-17 14:16:23 +0000 |
commit | 49a49d376341262032c3d1e5d037dca9554a7b4a (patch) | |
tree | 78d6d41ba64bca8817287d87cfe9694f6f015598 /test/support/http_request_mock.ex | |
parent | c34327b22e6e01e9e162ec93217f8ce2352204ac (diff) | |
parent | 2e2edcb461d514609848749355db6fab92e2b4f3 (diff) | |
download | pleroma-49a49d376341262032c3d1e5d037dca9554a7b4a.tar.gz pleroma-49a49d376341262032c3d1e5d037dca9554a7b4a.zip |
Merge branch 'removing-test-errors' into 'develop'
Removing test errors
See merge request pleroma/pleroma!1296
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 67ef0928a..f7f55a11a 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -802,6 +802,30 @@ defmodule HttpRequestMock do }} end + def post("http://mastodon.example.org/inbox", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + + def post("https://hubzilla.example.org/inbox", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + + def post("http://gs.example.org/index.php/main/salmon/user/1", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + def post("http://200.site" <> _, _, _, _) do {:ok, %Tesla.Env{ |