d
/
akkoma
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
akkoma/test/support/elasticsearch_mock.ex

15 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