Make users in tests follow themselves by default.
Also fix the semantics of all tests to match.
This commit is contained in:
parent
4db5954786
commit
edc3e5bc30
5 changed files with 10 additions and 9 deletions
|
|
@ -92,7 +92,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||
end
|
||||
|
||||
test "A user that follows you", %{user: user} do
|
||||
{:ok, follower} = UserBuilder.insert(%{following: [User.ap_followers(user)]})
|
||||
follower = insert(:user)
|
||||
{:ok, follower} = User.follow(follower, user)
|
||||
{:ok, user} = User.update_follower_count(user)
|
||||
image = "https://placehold.it/48x48"
|
||||
represented = %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue