Merge branch 'feature/mastodon_api_2.4.x' into 'develop'
[akkoma] / test / support / httpoison_mock.ex
index 4ee2feb9572bceb32f6ec52b167a561536a6b369..7057f30fb5e20b148799b6dce730e77bbefedf3d 100644 (file)
@@ -3,6 +3,14 @@ defmodule HTTPoisonMock do
 
   def get(url, body \\ [], headers \\ [])
 
+  def get("https://info.pleroma.site/activity.json", _, _) do
+    {:ok,
+     %Response{
+       status_code: 200,
+       body: File.read!("test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json")
+     }}
+  end
+
   def get("https://puckipedia.com/", [Accept: "application/activity+json"], _) do
     {:ok,
      %Response{