projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SideEffects: fix test
[akkoma]
/
test
/
pleroma
/
web
/
plugs
/
authentication_plug_test.exs
diff --git
a/test/pleroma/web/plugs/authentication_plug_test.exs
b/test/pleroma/web/plugs/authentication_plug_test.exs
index 2167f2457483a385147d5c901f73b6c40c292e9b..af39352e261a39bcf5a349e678352e49d5d5cebd 100644
(file)
--- a/
test/pleroma/web/plugs/authentication_plug_test.exs
+++ b/
test/pleroma/web/plugs/authentication_plug_test.exs
@@
-5,10
+5,10
@@
defmodule Pleroma.Web.Plugs.AuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true
defmodule Pleroma.Web.Plugs.AuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true
+ alias Pleroma.User
alias Pleroma.Web.Plugs.AuthenticationPlug
alias Pleroma.Web.Plugs.OAuthScopesPlug
alias Pleroma.Web.Plugs.PlugHelper
alias Pleroma.Web.Plugs.AuthenticationPlug
alias Pleroma.Web.Plugs.OAuthScopesPlug
alias Pleroma.Web.Plugs.PlugHelper
- alias Pleroma.User
import ExUnit.CaptureLog
import Pleroma.Factory
import ExUnit.CaptureLog
import Pleroma.Factory
@@
-118,7
+118,7
@@
defmodule Pleroma.Web.Plugs.AuthenticationPlugTest do
"psBWV8gxkGOZWBz$PmfCycChoxeJ3GgGzwvhlgacb9mUoZ.KUXNCssekER4SJ7bOK53uXrHNb2e4i8yPFgSKyzaW9CcmrDXWIEMtD1"
assert capture_log(fn ->
"psBWV8gxkGOZWBz$PmfCycChoxeJ3GgGzwvhlgacb9mUoZ.KUXNCssekER4SJ7bOK53uXrHNb2e4i8yPFgSKyzaW9CcmrDXWIEMtD1"
assert capture_log(fn ->
- refute
Pleroma.Plugs.
AuthenticationPlug.checkpw("password", hash)
+ refute AuthenticationPlug.checkpw("password", hash)
end) =~ "[error] Password hash not recognized"
end
end
end) =~ "[error] Password hash not recognized"
end
end