projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
InstanceView: Expose background image link.
[akkoma]
/
test
/
plugs
/
legacy_authentication_plug_test.exs
diff --git
a/test/plugs/legacy_authentication_plug_test.exs
b/test/plugs/legacy_authentication_plug_test.exs
index 7559de7d3d77275c065ddceb8db1f662f2aca61b..3b8c07627e20fe11ff31e06161fd192fc89aa69d 100644
(file)
--- a/
test/plugs/legacy_authentication_plug_test.exs
+++ b/
test/plugs/legacy_authentication_plug_test.exs
@@
-8,6
+8,8
@@
defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do
import Pleroma.Factory
alias Pleroma.Plugs.LegacyAuthenticationPlug
import Pleroma.Factory
alias Pleroma.Plugs.LegacyAuthenticationPlug
+ alias Pleroma.Plugs.OAuthScopesPlug
+ alias Pleroma.Plugs.PlugHelper
alias Pleroma.User
setup do
alias Pleroma.User
setup do
@@
-36,7
+38,8
@@
defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do
end
@tag :skip_on_mac
end
@tag :skip_on_mac
- test "it authenticates the auth_user if present and password is correct and resets the password",
+ test "if `auth_user` is present and password is correct, " <>
+ "it authenticates the user, resets the password, marks OAuthScopesPlug as skipped",
%{
conn: conn,
user: user
%{
conn: conn,
user: user
@@
-49,6
+52,7
@@
defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do
conn = LegacyAuthenticationPlug.call(conn, %{})
assert conn.assigns.user.id == user.id
conn = LegacyAuthenticationPlug.call(conn, %{})
assert conn.assigns.user.id == user.id
+ assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug)
end
@tag :skip_on_mac
end
@tag :skip_on_mac