1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00
akkoma/test/support/elasticsearch_mock.ex

15 lines
279 B
Elixir
Raw Permalink Normal View History

2022-06-30 16:53:21 +01:00
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