Make users in tests follow themselves by default.

Also fix the semantics of all tests to match.
This commit is contained in:
eal 2017-11-20 07:52:02 +02:00
commit edc3e5bc30
5 changed files with 10 additions and 9 deletions

View file

@ -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 = %{