Missed tests
authorMark Felder <feld@FreeBSD.org>
Tue, 13 Oct 2020 21:15:28 +0000 (16:15 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 13 Oct 2020 21:15:28 +0000 (16:15 -0500)
test/pleroma/web/mastodon_api/controllers/account_controller_test.exs
test/pleroma/web/mastodon_api/update_credentials_test.exs

index 0b803b7ab11c14d227e1b7a00dcdd447fe7c504e..5164063beb9e482720a68a62c99634bb06bfe9e1 100644 (file)
@@ -1271,7 +1271,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
                "follow_requests_count" => 0,
                "followers_count" => 0,
                "following_count" => 0,
-               "locked" => false,
+               "is_locked" => false,
                "note" => "",
                "source" => %{
                  "fields" => [],
index 79d41d1bf46b7ae9474087322730685d13c1dd64..9340b3ae0588c8e15552549faf6ae6715d303c12 100644 (file)
@@ -105,7 +105,7 @@ defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do
       conn = patch(conn, "/api/v1/accounts/update_credentials", %{is_locked: "true"})
 
       assert user_data = json_response_and_validate_schema(conn, 200)
-      assert user_data["locked"] == true
+      assert user_data["is_locked"] == true
     end
 
     test "updates the user's chat acceptance status", %{conn: conn} do