Merge branch 'develop' of akkoma.dev:AkkomaGang/akkoma into develop
[akkoma] / test / support / elasticsearch_mock.ex
1 defmodule Pleroma.ElasticsearchMock do
2 @behaviour Elasticsearch.API
3
4 @impl true
5 def request(_config, :get, "/posts/1", _data, _opts) do
6 {:ok,
7 %HTTPoison.Response{
8 status_code: 404,
9 body: %{
10 "status" => "not_found"
11 }
12 }}
13 end
14 end