diff options
author | lambda <lain@soykaf.club> | 2019-04-10 10:10:08 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-04-10 10:10:08 +0000 |
commit | e5d553aa45ffa218b0695d7976f012bfc1dcbafe (patch) | |
tree | f0f48276f13879fbf7c0355190e511112e473e2b /test/support | |
parent | 6504b43f96860d1911ed9a17d1c487a6e8ac93ba (diff) | |
parent | fee50636d07c54328ececfe8805c658e3bb80cc6 (diff) | |
download | pleroma-e5d553aa45ffa218b0695d7976f012bfc1dcbafe.tar.gz |
Merge branch 'feature/767-multiple-use-invite-token' into 'develop'
Feature/767 multiple use invite token
See merge request pleroma/pleroma!1032
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 4 |
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 |