Add spec for AccountController.verify_credentials
This commit is contained in:
parent
b08ded6c2f
commit
f80116125f
8 changed files with 262 additions and 9 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue