diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-05-19 08:25:45 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-05-19 03:28:32 -0500 |
commit | 4033ed671443bbb4111b45473696dc8a23fe9873 (patch) | |
tree | e10be02e637aa7f66742f8182ad239f8c10911db /test/support | |
parent | 19c96c8a19aece5419bc0be5ea3e2945887828b7 (diff) | |
download | pleroma-4033ed671443bbb4111b45473696dc8a23fe9873.tar.gz |
tests: add test for hubzilla follow activity too
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 4a5a9ea85..ad5171492 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -628,6 +628,14 @@ defmodule HTTPoisonMock do }} end + def get("https://hubzilla.example.org/channel/kaniini", [Accept: "application/activity+json"], _) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/kaniini@hubzilla.example.org.json") + }} + end + def get("https://masto.quad.moe/users/_HellPie", [Accept: "application/activity+json"], _) do {:ok, %Response{ |