summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/app_controller_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-24 16:10:43 +0000
committerlain <lain@soykaf.club>2020-04-24 16:10:43 +0000
commitd862c7156a1edcdc89425143901f140bc0b1f5eb (patch)
treee5f3e28956e01930ff4c21ac982733ef718645d5 /test/web/mastodon_api/controllers/app_controller_test.exs
parent2430b9bf90d6fde71885f5f0f8be767526be6208 (diff)
parentf362836742aabd5b60b92c1296f2bbb6d83a3d59 (diff)
downloadpleroma-d862c7156a1edcdc89425143901f140bc0b1f5eb.tar.gz
pleroma-d862c7156a1edcdc89425143901f140bc0b1f5eb.zip
Merge branch 'openapi-improvements' into 'develop'
Support validation for inline OpenAPI schema and automatic tests for examples Closes #1696 See merge request pleroma/pleroma!2421
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