Add specs for AccountController.block and AccountController.unblock
This commit is contained in:
parent
e4195d4a68
commit
68a979b824
3 changed files with 34 additions and 3 deletions
|
|
@ -819,10 +819,12 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
|
|||
ret_conn = post(conn, "/api/v1/accounts/#{other_user.id}/block")
|
||||
|
||||
assert %{"id" => _id, "blocking" => true} = json_response(ret_conn, 200)
|
||||
assert_schema(json_response(ret_conn, 200), "AccountRelationship", ApiSpec.spec())
|
||||
|
||||
conn = post(conn, "/api/v1/accounts/#{other_user.id}/unblock")
|
||||
|
||||
assert %{"id" => _id, "blocking" => false} = json_response(conn, 200)
|
||||
assert_schema(json_response(ret_conn, 200), "AccountRelationship", ApiSpec.spec())
|
||||
end
|
||||
|
||||
describe "create account by app" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue