mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
14 lines
279 B
Elixir
14 lines
279 B
Elixir
defmodule Pleroma.ElasticsearchMock do
|
|
@behaviour Elasticsearch.API
|
|
|
|
@impl true
|
|
def request(_config, :get, "/posts/1", _data, _opts) do
|
|
{:ok,
|
|
%HTTPoison.Response{
|
|
status_code: 404,
|
|
body: %{
|
|
"status" => "not_found"
|
|
}
|
|
}}
|
|
end
|
|
end
|