diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-07 11:06:30 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-07 11:06:30 +0300 |
commit | 28fb98d69e31ce5a09e15e213491b880430a0902 (patch) | |
tree | 2910113e8a4ed4d225a4ffc8b6b95d56e782367f /test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs | |
parent | f459aabdfafa990b33610438650f882ccac072d2 (diff) | |
parent | b4f3c16885a489c40de82e5ef321caafa4b10c81 (diff) | |
download | pleroma-28fb98d69e31ce5a09e15e213491b880430a0902.tar.gz pleroma-28fb98d69e31ce5a09e15e213491b880430a0902.zip |
Merge remote-tracking branch 'remotes/upstream/develop' into 1260-rate-limited-auth-actions
# Conflicts:
# CHANGELOG.md
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 |