projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
expanding AddRemoveValidator
[akkoma]
/
test
/
pleroma
/
captcha_test.exs
diff --git
a/test/pleroma/captcha_test.exs
b/test/pleroma/captcha_test.exs
index bde3c72f7b7e11f5acd64da370586b162519dd36..fcb585112da653df485fc9ce2bef3d3433829345 100644
(file)
--- a/
test/pleroma/captcha_test.exs
+++ b/
test/pleroma/captcha_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.CaptchaTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.CaptchaTest do
@@
-69,7
+69,7
@@
defmodule Pleroma.CaptchaTest do
describe "Captcha Wrapper" do
test "validate" do
describe "Captcha Wrapper" do
test "validate" do
-
Pleroma.Config.put
([Pleroma.Captcha, :enabled], true)
+
clear_config
([Pleroma.Captcha, :enabled], true)
new = Captcha.new()
new = Captcha.new()
@@
-83,7
+83,7
@@
defmodule Pleroma.CaptchaTest do
end
test "doesn't validate invalid answer" do
end
test "doesn't validate invalid answer" do
-
Pleroma.Config.put
([Pleroma.Captcha, :enabled], true)
+
clear_config
([Pleroma.Captcha, :enabled], true)
new = Captcha.new()
new = Captcha.new()
@@
-99,7
+99,7
@@
defmodule Pleroma.CaptchaTest do
end
test "nil answer_data" do
end
test "nil answer_data" do
-
Pleroma.Config.put
([Pleroma.Captcha, :enabled], true)
+
clear_config
([Pleroma.Captcha, :enabled], true)
new = Captcha.new()
new = Captcha.new()