Change test case wording

This commit is contained in:
Haelwenn 2022-07-31 21:34:23 +00:00 committed by tusooa
parent c80096522c
commit 5ef2dc317d

View file

@ -553,7 +553,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
assert json_response_and_validate_schema(conn, 200) == %{"error" => "Invalid password."} assert json_response_and_validate_schema(conn, 200) == %{"error" => "Invalid password."}
end end
test "with proper permissions, valid password and target account does not alias this", test "with proper permissions, valid password and target account does not alias it",
%{ %{
conn: conn conn: conn
} do } do
@ -592,7 +592,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
} }
end end
test "with proper permissions, valid password, remote target account aliases this and local cache does not exist", test "with proper permissions, valid password, remote target account aliases it and local cache does not exist",
%{} do %{} do
user = insert(:user, ap_id: "https://lm.kazv.moe/users/testuser") user = insert(:user, ap_id: "https://lm.kazv.moe/users/testuser")
%{user: _user, conn: conn} = oauth_access(["write:accounts"], user: user) %{user: _user, conn: conn} = oauth_access(["write:accounts"], user: user)
@ -610,7 +610,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
assert json_response_and_validate_schema(conn, 200) == %{"status" => "success"} assert json_response_and_validate_schema(conn, 200) == %{"status" => "success"}
end end
test "with proper permissions, valid password, remote target account aliases this and local cache does not alias this", test "with proper permissions, valid password, remote target account aliases it and local cache does not aliases it",
%{} do %{} do
user = insert(:user, ap_id: "https://lm.kazv.moe/users/testuser") user = insert(:user, ap_id: "https://lm.kazv.moe/users/testuser")
%{user: _user, conn: conn} = oauth_access(["write:accounts"], user: user) %{user: _user, conn: conn} = oauth_access(["write:accounts"], user: user)
@ -636,7 +636,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
assert json_response_and_validate_schema(conn, 200) == %{"status" => "success"} assert json_response_and_validate_schema(conn, 200) == %{"status" => "success"}
end end
test "with proper permissions, valid password, remote target account does not alias this and local cache aliases this", test "with proper permissions, valid password, remote target account does not aliases it and local cache aliases it",
%{ %{
user: user, user: user,
conn: conn conn: conn
@ -665,7 +665,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
} }
end end
test "with proper permissions, valid password and target account aliases this", %{ test "with proper permissions, valid password and target account aliases it", %{
conn: conn, conn: conn,
user: user user: user
} do } do