X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsupport%2Fhttpoison_mock.ex;h=21607ba95ed510f61bf3cc24e08c4c096756b16b;hb=ab83e0de6d389428cec11fe94280d675a38f00d0;hp=091fb9dede3b8401b5f8fa936e5f773b3c8db1f9;hpb=678f572144bfd861793c0b72061b04cdb9b7c991;p=akkoma diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 091fb9ded..21607ba95 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -240,6 +240,13 @@ defmodule HTTPoisonMock do }} end + def get("https://pleroma.soykaf.com/.well-known/webfinger?resource=https://pleroma.soykaf.com/users/shp", [Accept: "application/xrd+xml"], []) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.webfigner") + }} + end + def get("https://squeet.me/xrd/?uri=lain@squeet.me", [Accept: "application/xrd+xml"], []) do {:ok, %Response{ status_code: 200, @@ -259,7 +266,13 @@ defmodule HTTPoisonMock do status_code: 200, body: File.read!("test/fixtures/httpoison_mock/sakamoto.atom") }} + end + def get("https://pleroma.soykaf.com/users/shp/feed.atom", _, _) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.feed") + }} end def get("http://social.heldscal.la/.well-known/host-meta", [], [follow_redirect: true]) do