projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expand and authorize streams in Streamer directly (backport from !2519)
[akkoma]
/
test
/
plugs
/
oauth_scopes_plug_test.exs
diff --git
a/test/plugs/oauth_scopes_plug_test.exs
b/test/plugs/oauth_scopes_plug_test.exs
index 85105f968176d431fb4aaeab7a9c8c5ac2db44c7..d855d4f5420f230c35c3536c8248b6e3d1f6c5b7 100644
(file)
--- a/
test/plugs/oauth_scopes_plug_test.exs
+++ b/
test/plugs/oauth_scopes_plug_test.exs
@@
-7,7
+7,6
@@
defmodule Pleroma.Plugs.OAuthScopesPlugTest do
alias Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug
alias Pleroma.Plugs.OAuthScopesPlug
alias Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug
alias Pleroma.Plugs.OAuthScopesPlug
- alias Pleroma.Plugs.PlugHelper
alias Pleroma.Repo
import Mock
alias Pleroma.Repo
import Mock
@@
-21,7
+20,7
@@
defmodule Pleroma.Plugs.OAuthScopesPlugTest do
with_mock OAuthScopesPlug, [:passthrough], perform: &passthrough([&1, &2]) do
conn =
conn
with_mock OAuthScopesPlug, [:passthrough], perform: &passthrough([&1, &2]) do
conn =
conn
- |>
PlugHelper.append_to_skipped_plugs(OAuthScopesPlug
)
+ |>
OAuthScopesPlug.skip_plug(
)
|> OAuthScopesPlug.call(%{scopes: ["random_scope"]})
refute called(OAuthScopesPlug.perform(:_, :_))
|> OAuthScopesPlug.call(%{scopes: ["random_scope"]})
refute called(OAuthScopesPlug.perform(:_, :_))