projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified deleting an account to run as a task
[akkoma]
/
test
/
web
/
oauth
/
token_test.exs
diff --git
a/test/web/oauth/token_test.exs
b/test/web/oauth/token_test.exs
index 3bd763989875a6516150fadb4dc42d0c7d84fa05..58448949c88bb8c701430424938193a8fcaab622 100644
(file)
--- a/
test/web/oauth/token_test.exs
+++ b/
test/web/oauth/token_test.exs
@@
-6,7
+6,15
@@
defmodule Pleroma.Web.OAuth.TokenTest do
import Pleroma.Factory
test "exchanges a auth token for an access token" do
import Pleroma.Factory
test "exchanges a auth token for an access token" do
- {:ok, app} = Repo.insert(App.register_changeset(%App{}, %{client_name: "client", scopes: "scope", redirect_uris: "url"}))
+ {:ok, app} =
+ Repo.insert(
+ App.register_changeset(%App{}, %{
+ client_name: "client",
+ scopes: "scope",
+ redirect_uris: "url"
+ })
+ )
+
user = insert(:user)
{:ok, auth} = Authorization.create_authorization(app, user)
user = insert(:user)
{:ok, auth} = Authorization.create_authorization(app, user)