summaryrefslogtreecommitdiff
path: root/test/captcha_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-08-05 19:16:48 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-08-05 19:16:48 +0300
commit4672b61106044c3772f58b02d39531b015ad8cca (patch)
tree0c0844bab5eae07265965b2b6dbd914afc55f9d6 /test/captcha_test.exs
parent3116a75e80144dff79232c8676bd28ed285a14d9 (diff)
parent7755f49e281e4990db5317b33d6b8e0d12982e0c (diff)
downloadpleroma-4672b61106044c3772f58b02d39531b015ad8cca.tar.gz
pleroma-4672b61106044c3772f58b02d39531b015ad8cca.zip
Merge branch 'develop' into command-available-check
Diffstat (limited to 'test/captcha_test.exs')
-rw-r--r--test/captcha_test.exs6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/captcha_test.exs b/test/captcha_test.exs
index 1ab9019ab..1b9f4a12f 100644
--- a/test/captcha_test.exs
+++ b/test/captcha_test.exs
@@ -41,7 +41,8 @@ defmodule Pleroma.CaptchaTest do
answer_data: answer,
token: ^token,
url: ^url,
- type: :kocaptcha
+ type: :kocaptcha,
+ seconds_valid: 300
} = new
assert Kocaptcha.validate(token, "7oEy8c", answer) == :ok
@@ -56,7 +57,8 @@ defmodule Pleroma.CaptchaTest do
answer_data: answer,
token: token,
type: :native,
- url: "data:image/png;base64," <> _
+ url: "data:image/png;base64," <> _,
+ seconds_valid: 300
} = new
assert is_binary(answer)