summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-04-06 17:18:59 +0700
committerAlex S <alex.strizhakov@gmail.com>2019-04-06 17:18:59 +0700
commitbe54e40890432d2cd8e592e6d4acfa9f1e98586c (patch)
tree6e72689e39ca56e2fa93442ba0d8b5f52dc92ebd /test/support
parent0484f3a8b1ae2103d1d756e5c09f2bdb218a7207 (diff)
downloadpleroma-be54e40890432d2cd8e592e6d4acfa9f1e98586c.tar.gz
pleroma-be54e40890432d2cd8e592e6d4acfa9f1e98586c.zip
twitter api registration
fix for twitter api tests
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_request_mock.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index d3b547d91..5b355bfe6 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -716,6 +716,10 @@ defmodule HttpRequestMock do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/lambadalambda.atom")}}
end
+ def get("https://mastodon.social/users/lambadalambda", _, _, _) do
+ {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/lambadalambda.json")}}
+ end
+
def get("https://social.heldscal.la/user/23211", _, _, Accept: "application/activity+json") do
{:ok, Tesla.Mock.json(%{"id" => "https://social.heldscal.la/user/23211"}, status: 200)}
end