diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-10-07 02:14:45 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-10-07 02:14:45 +0000 |
commit | b4f3c16885a489c40de82e5ef321caafa4b10c81 (patch) | |
tree | e81e3d7ba6882b31bd18c221f872049af73e44f2 /test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs | |
parent | 25cffffaf1685ef02cd318bdbd99bb325d295458 (diff) | |
parent | b93856874de673f1c05c557ad482d4480ca7e0a7 (diff) | |
download | pleroma-b4f3c16885a489c40de82e5ef321caafa4b10c81.tar.gz pleroma-b4f3c16885a489c40de82e5ef321caafa4b10c81.zip |
Merge branch '1234-mastodon-2-4-3-oauth-scopes' into 'develop'
[#1234] Mastodon 2.4.3 hierarchical OAuth scopes
Closes #1234
See merge request pleroma/pleroma!1643
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs b/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs index 599cd61c8..618031b40 100644 --- a/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs +++ b/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs @@ -272,7 +272,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do assert user_response["pleroma"]["background_image"] end - test "requires 'write' permission", %{conn: conn} do + test "requires 'write:accounts' permission", %{conn: conn} do token1 = insert(:oauth_token, scopes: ["read"]) token2 = insert(:oauth_token, scopes: ["write", "follow"]) @@ -283,7 +283,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do |> patch("/api/v1/accounts/update_credentials", %{}) if token == token1 do - assert %{"error" => "Insufficient permissions: write."} == json_response(conn, 403) + assert %{"error" => "Insufficient permissions: write:accounts."} == + json_response(conn, 403) else assert json_response(conn, 200) end |