diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-01 23:00:59 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-01 23:13:08 +0400 |
commit | 23219e6fb3163bfac07fb5fb1b2602dcd27e47c2 (patch) | |
tree | 0e878d883de8d33d86ac334b74b25543fd62dc23 /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | 8bd5ad8664479b722e6905306f6342f35e2a84d2 (diff) | |
download | pleroma-23219e6fb3163bfac07fb5fb1b2602dcd27e47c2.tar.gz pleroma-23219e6fb3163bfac07fb5fb1b2602dcd27e47c2.zip |
Add OpenAPI
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index a9fa0ce48..a450a732c 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -794,7 +794,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do test "Account registration via Application", %{conn: conn} do conn = - post(conn, "/api/v1/apps", %{ + conn + |> put_req_header("content-type", "application/json") + |> post("/api/v1/apps", %{ client_name: "client_name", redirect_uris: "urn:ietf:wg:oauth:2.0:oob", scopes: "read, write, follow" |