diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-05 20:41:33 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-19 23:21:37 +0000 |
commit | ef659331b03925c41cd3e557bd39cb2d73dd6aa1 (patch) | |
tree | b1f0e5fea52a6e1ccf817c0d85b1b6839cdeed74 /test/support | |
parent | 95871cb4628933900f2004a8bece1b929d5525bf (diff) | |
download | pleroma-ef659331b03925c41cd3e557bd39cb2d73dd6aa1.tar.gz pleroma-ef659331b03925c41cd3e557bd39cb2d73dd6aa1.zip |
implement invisible support for remote users
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 7d65209fb..eba22c40b 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -348,6 +348,14 @@ defmodule HttpRequestMock do }} end + def get("http://mastodon.example.org/users/relay", _, _, Accept: "application/activity+json") do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/relay@mastdon.example.org.json") + }} + end + def get("http://mastodon.example.org/users/gargron", _, _, Accept: "application/activity+json") do {:error, :nxdomain} end |