summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-03-11 14:47:37 +0100
committerlain <lain@soykaf.club>2018-03-11 14:47:37 +0100
commit368e085144cc3bea501dc14a783f32cd696cb3af (patch)
treef92eb1c224045f15f13afc5b7f247e1717d2fd4c /test/support
parenta9f78fe8e07df1fdd51f235090cd35b09c73aa34 (diff)
downloadpleroma-368e085144cc3bea501dc14a783f32cd696cb3af.tar.gz
pleroma-368e085144cc3bea501dc14a783f32cd696cb3af.zip
Don't validate on missing public key.
Diffstat (limited to 'test/support')
-rw-r--r--test/support/httpoison_mock.ex7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex
index ad9be9aef..a8b1a60c0 100644
--- a/test/support/httpoison_mock.ex
+++ b/test/support/httpoison_mock.ex
@@ -401,6 +401,13 @@ defmodule HTTPoisonMock do
}}
end
+ def get("https://mst3k.interlinked.me/users/luciferMysticus", ["Accept": "application/activity+json"], _) do
+ {:ok, %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/lucifermysticus.json")
+ }}
+ end
+
def get("https://mstdn.io/users/mayuutann", ["Accept": "application/activity+json"], _) do
{:ok, %Response{
status_code: 200,