fix 486: Add option --assume-yes to allow it to work non-interactive
[akkoma] / test / support / captcha_mock.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Captcha.Mock do
6 alias Pleroma.Captcha.Service
7 @behaviour Service
8
9 @impl Service
10 def new(), do: %{type: :mock}
11
12 @impl Service
13 def validate(_token, _captcha), do: true
14
15 @impl Service
16 def cleanup(), do: :ok
17 end