Merge branch 'develop' into match-file-name
[akkoma] / test / support / http_request_mock.ex
index 80586426b7fa9d01bf654096b57d9b48078d742a..7811f78074e22a403e8ea291d7c915e1b7d93267 100644 (file)
@@ -887,6 +887,10 @@ defmodule HttpRequestMock do
      }}
   end
 
+  def get("https://info.pleroma.site/activity.json", _, _, _) do
+    {:ok, %Tesla.Env{status: 404, body: ""}}
+  end
+
   def get("https://info.pleroma.site/activity2.json", _, _, Accept: "application/activity+json") do
     {:ok,
      %Tesla.Env{
@@ -895,6 +899,10 @@ defmodule HttpRequestMock do
      }}
   end
 
+  def get("https://info.pleroma.site/activity2.json", _, _, _) do
+    {:ok, %Tesla.Env{status: 404, body: ""}}
+  end
+
   def get("https://info.pleroma.site/activity3.json", _, _, Accept: "application/activity+json") do
     {:ok,
      %Tesla.Env{
@@ -903,6 +911,10 @@ defmodule HttpRequestMock do
      }}
   end
 
+  def get("https://info.pleroma.site/activity3.json", _, _, _) do
+    {:ok, %Tesla.Env{status: 404, body: ""}}
+  end
+
   def get(url, query, body, headers) do
     {:error,
      "Not implemented the mock response for get #{inspect(url)}, #{query}, #{inspect(body)}, #{