summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/app_controller_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-04-15 19:20:34 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-04-15 19:20:34 +0300
commitbedf92e064ec96f0b9bb95c2263616a2fe49017d (patch)
treef07832cb01dcc5574c6be537c78e5e51fbb3fda6 /test/web/mastodon_api/controllers/app_controller_test.exs
parentfc81e5a49c34224e07e85f490a30f92db0835d45 (diff)
parentb1c1d2e5e1e1c43a068a7223f9ba69c689c878a3 (diff)
downloadpleroma-bedf92e064ec96f0b9bb95c2263616a2fe49017d.tar.gz
pleroma-bedf92e064ec96f0b9bb95c2263616a2fe49017d.zip
Merge remote-tracking branch 'remotes/origin/develop' into authenticated-api-oauth-check-enforcement
Diffstat (limited to 'test/web/mastodon_api/controllers/app_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/app_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/app_controller_test.exs b/test/web/mastodon_api/controllers/app_controller_test.exs
index 77d234d67..e7b11d14e 100644
--- a/test/web/mastodon_api/controllers/app_controller_test.exs
+++ b/test/web/mastodon_api/controllers/app_controller_test.exs
@@ -16,8 +16,7 @@ defmodule Pleroma.Web.MastodonAPI.AppControllerTest do
conn =
conn
- |> assign(:user, token.user)
- |> assign(:token, token)
+ |> put_req_header("authorization", "Bearer #{token.token}")
|> get("/api/v1/apps/verify_credentials")
app = Repo.preload(token, :app).app
@@ -37,6 +36,7 @@ defmodule Pleroma.Web.MastodonAPI.AppControllerTest do
conn =
conn
+ |> put_req_header("content-type", "application/json")
|> assign(:user, user)
|> post("/api/v1/apps", %{
client_name: app_attrs.client_name,