summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/app_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-01 23:00:59 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-01 23:13:08 +0400
commit23219e6fb3163bfac07fb5fb1b2602dcd27e47c2 (patch)
tree0e878d883de8d33d86ac334b74b25543fd62dc23 /test/web/mastodon_api/controllers/app_controller_test.exs
parent8bd5ad8664479b722e6905306f6342f35e2a84d2 (diff)
downloadpleroma-23219e6fb3163bfac07fb5fb1b2602dcd27e47c2.tar.gz
pleroma-23219e6fb3163bfac07fb5fb1b2602dcd27e47c2.zip
Add OpenAPI
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,