diff options
author | lain <lain@soykaf.club> | 2020-07-09 13:10:05 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-07-09 13:10:05 +0000 |
commit | 8ca1f3e8c61b906387e9cb6fb8993d2ad496ab3d (patch) | |
tree | bbacb00a4ef2ae1a1c79b87ebf036baea3e4e6cc /test | |
parent | f4469dc7419288a46512ea5cae6ffe32de5d47c2 (diff) | |
parent | 59540131c189afb10faf98d1bfeccf8f94985a90 (diff) | |
download | pleroma-8ca1f3e8c61b906387e9cb6fb8993d2ad496ab3d.tar.gz pleroma-8ca1f3e8c61b906387e9cb6fb8993d2ad496ab3d.zip |
Merge branch '1723-token-fixes' into 'develop'
AccountController: Return scope in proper format.
Closes #1723
See merge request pleroma/pleroma!2694
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index f102c0cd2..9c7b5e9b2 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -937,7 +937,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do %{ "access_token" => token, "created_at" => _created_at, - "scope" => _scope, + "scope" => ^scope, "token_type" => "Bearer" } = json_response_and_validate_schema(conn, 200) @@ -1099,7 +1099,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do assert %{ "access_token" => access_token, "created_at" => _, - "scope" => ["read", "write", "follow", "push"], + "scope" => "read write follow push", "token_type" => "Bearer" } = response @@ -1217,7 +1217,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do assert %{ "access_token" => access_token, "created_at" => _, - "scope" => ["read"], + "scope" => "read", "token_type" => "Bearer" } = conn |