diff options
author | lain <lain@soykaf.club> | 2019-10-07 12:30:59 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-10-07 12:30:59 +0200 |
commit | 73b6512907d205d4be49864541eeb941d259aa57 (patch) | |
tree | 8441ec250a7e7681b12bdc756df46a9870793149 /test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs | |
parent | 91e90aa807c2ce346cd453201447806fb71b21fe (diff) | |
parent | 93bdc55306895dce0554e7838ecf2ea7ddaea3a7 (diff) | |
download | pleroma-73b6512907d205d4be49864541eeb941d259aa57.tar.gz pleroma-73b6512907d205d4be49864541eeb941d259aa57.zip |
Merge remote-tracking branch 'origin/develop' into reactions
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 |