Merge branch 'admin-changes' into 'develop'
[akkoma] / test / support / http_request_mock.ex
index 55cfc1e00f3c1b6dfe6131afeeded18f9a8972ad..2ed5f504204cfbc7f1979f41576ea392fe17e096 100644 (file)
@@ -940,6 +940,14 @@ defmodule HttpRequestMock do
     {:ok, %Tesla.Env{status: 404, body: ""}}
   end
 
+  def get("https://mstdn.jp/.well-known/webfinger?resource=acct:kpherox@mstdn.jp", _, _, _) do
+    {:ok,
+     %Tesla.Env{
+       status: 200,
+       body: File.read!("test/fixtures/tesla_mock/kpherox@mstdn.jp.xml")
+     }}
+  end
+
   def get(url, query, body, headers) do
     {:error,
      "Not implemented the mock response for get #{inspect(url)}, #{query}, #{inspect(body)}, #{