Add a captcha mock for tests

This commit is contained in:
Ekaterina Vaartis 2018-12-15 22:38:39 +03:00
commit e8537208bd
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,10 @@
defmodule Pleroma.Captcha.Mock do
alias Pleroma.Captcha.Service
@behaviour Service
@impl Service
def new(), do: %{type: :mock}
@impl Service
def validate(_token, _captcha), do: true
end