diff options
author | Ekaterina Vaartis <vaartis@cock.li> | 2018-12-15 22:38:39 +0300 |
---|---|---|
committer | Ekaterina Vaartis <vaartis@cock.li> | 2018-12-15 22:38:39 +0300 |
commit | e8537208bd9af701cbfc788ca307b8352306a36b (patch) | |
tree | 0020424a0cd18849aa3ee19b85301d31ec4b307d /test/support | |
parent | 98e10c0d4f9d0aa32e34d706c9aa5919a64c2db2 (diff) | |
download | pleroma-e8537208bd9af701cbfc788ca307b8352306a36b.tar.gz |
Add a captcha mock for tests
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/captcha_mock.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/support/captcha_mock.ex b/test/support/captcha_mock.ex new file mode 100644 index 000000000..9d79f2e95 --- /dev/null +++ b/test/support/captcha_mock.ex @@ -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 |