use commonAPI in tests

This commit is contained in:
Sadposter 2019-08-18 22:54:40 +01:00
parent 94e336d9d5
commit 58c1391c4d

View file

@ -94,7 +94,7 @@ defmodule Pleroma.UserTest do
followed = insert(:user, %{info: %{locked: true}})
follower = insert(:user)
Pleroma.Web.TwitterAPI.TwitterAPI.follow(follower, %{"user_id" => followed.id})
CommonAPI.follow(follower, followed)
assert {:ok, [_activity]} = User.get_follow_requests(followed)
{:ok, _follower} = User.block(followed, follower)