summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/app_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-24 14:46:59 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-24 15:16:15 +0400
commitf362836742aabd5b60b92c1296f2bbb6d83a3d59 (patch)
treee24949c5eb8cdecd29ea83165af9d2bab4447771 /test/web/mastodon_api/controllers/app_controller_test.exs
parent1b5f8d19eeccfe202c0377079caa6a1d6f3cacb5 (diff)
downloadpleroma-f362836742aabd5b60b92c1296f2bbb6d83a3d59.tar.gz
pleroma-f362836742aabd5b60b92c1296f2bbb6d83a3d59.zip
Support validation for inline OpenAPI schema and automatic tests for examples
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 e7b11d14e..a0b8b126c 100644
--- a/test/web/mastodon_api/controllers/app_controller_test.exs
+++ b/test/web/mastodon_api/controllers/app_controller_test.exs
@@ -27,7 +27,7 @@ defmodule Pleroma.Web.MastodonAPI.AppControllerTest do
"vapid_key" => Push.vapid_config() |> Keyword.get(:public_key)
}
- assert expected == json_response(conn, 200)
+ assert expected == json_response_and_validate_schema(conn, 200)
end
test "creates an oauth app", %{conn: conn} do
@@ -55,6 +55,6 @@ defmodule Pleroma.Web.MastodonAPI.AppControllerTest do
"vapid_key" => Push.vapid_config() |> Keyword.get(:public_key)
}
- assert expected == json_response(conn, 200)
+ assert expected == json_response_and_validate_schema(conn, 200)
end
end