summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-06 00:15:37 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-13 17:38:59 +0400
commitf80116125f928de36c93627bbdf5f6578396f53b (patch)
treea8991a6a5d3589f87738df034a38d5b49f90c1b0 /test
parentb08ded6c2f5ee29c6efc8c67cfc2ce0a679f0c77 (diff)
downloadpleroma-f80116125f928de36c93627bbdf5f6578396f53b.tar.gz
pleroma-f80116125f928de36c93627bbdf5f6578396f53b.zip
Add spec for AccountController.verify_credentials
Diffstat (limited to 'test')
-rw-r--r--test/web/api_spec/account_operation_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/api_spec/account_operation_test.exs b/test/web/api_spec/account_operation_test.exs
index 4f8d04698..37501b8cc 100644
--- a/test/web/api_spec/account_operation_test.exs
+++ b/test/web/api_spec/account_operation_test.exs
@@ -6,12 +6,19 @@ defmodule Pleroma.Web.ApiSpec.AccountOperationTest do
use Pleroma.Web.ConnCase, async: true
alias Pleroma.Web.ApiSpec
+ alias Pleroma.Web.ApiSpec.Schemas.Account
alias Pleroma.Web.ApiSpec.Schemas.AccountCreateRequest
alias Pleroma.Web.ApiSpec.Schemas.AccountCreateResponse
import OpenApiSpex.TestAssertions
import Pleroma.Factory
+ test "Account example matches schema" do
+ api_spec = ApiSpec.spec()
+ schema = Account.schema()
+ assert_schema(schema.example, "Account", api_spec)
+ end
+
test "AccountCreateRequest example matches schema" do
api_spec = ApiSpec.spec()
schema = AccountCreateRequest.schema()