removing 410 status

This commit is contained in:
Alexander Strizhakov 2020-05-13 11:11:10 +03:00
commit b1aa402229
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 6 additions and 11 deletions

View file

@ -131,10 +131,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
test "returns 401 for deactivated user", %{conn: conn} do
user = insert(:user, deactivated: true)
assert %{} =
assert %{"error" => "Can't find user"} =
conn
|> get("/api/v1/accounts/#{user.id}")
|> json_response_and_validate_schema(:gone)
|> json_response_and_validate_schema(:not_found)
end
end
@ -261,10 +261,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
test "deactivated user", %{conn: conn} do
user = insert(:user, deactivated: true)
assert %{} ==
assert %{"error" => "Can't find user"} ==
conn
|> get("/api/v1/accounts/#{user.id}/statuses")
|> json_response_and_validate_schema(:gone)
|> json_response_and_validate_schema(:not_found)
end
test "returns 404 when user is invisible", %{conn: conn} do