testsuite: formatting
[akkoma] / test / support / httpoison_mock.ex
index a52d44ed6df2a4a58e11153ab9b163cdb5f15e4e..527c2e1f7f6ac6f03661f032fcc27f4dc03fb5ae 100644 (file)
@@ -3,6 +3,14 @@ defmodule HTTPoisonMock do
 
   def get(url, body \\ [], headers \\ [])
 
+  def get("https://puckipedia.com/", [Accept: "application/activity+json"], _) do
+    {:ok,
+     %Response{
+       status_code: 200,
+       body: File.read!("test/fixtures/httpoison_mock/puckipedia.com.json")
+     }}
+  end
+
   def get(
         "https://gerzilla.de/.well-known/webfinger?resource=acct:kaniini@gerzilla.de",
         [Accept: "application/xrd+xml,application/jrd+json"],