projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix-attachment-dimensions' into 'develop'
[akkoma]
/
test
/
pleroma
/
web
/
o_auth
/
o_auth_controller_test.exs
diff --git
a/test/pleroma/web/o_auth/o_auth_controller_test.exs
b/test/pleroma/web/o_auth/o_auth_controller_test.exs
index 312500febf243a04ca96526f9de790513f324a1f..0fdd5b8e9fb853e6cd2f4a84ef6eb1ad39030292 100644
(file)
--- a/
test/pleroma/web/o_auth/o_auth_controller_test.exs
+++ b/
test/pleroma/web/o_auth/o_auth_controller_test.exs
@@
-805,10
+805,12
@@
defmodule Pleroma.Web.OAuth.OAuthControllerTest do
"client_secret" => app.client_secret
})
"client_secret" => app.client_secret
})
- assert %{"
access_token" =>
token} = json_response(conn, 200)
+ assert %{"
id" => id, "access_token" => access_
token} = json_response(conn, 200)
- token = Repo.get_by(Token, token: token)
+ token = Repo.get_by(Token, token:
access_
token)
assert token
assert token
+ assert token.id == id
+ assert token.token == access_token
assert token.scopes == app.scopes
end
assert token.scopes == app.scopes
end