Remove unnecesary queries
authordtluna <dtluna@openmailbox.org>
Sun, 16 Apr 2017 14:41:30 +0000 (17:41 +0300)
committerdtluna <dtluna@openmailbox.org>
Sun, 16 Apr 2017 14:42:15 +0000 (17:42 +0300)
test/web/twitter_api/twitter_api_test.exs

index eda1c8c1c2d5fcff83b33a03743dafa694577332..4993da3edee9a6be4d2ae1381a462362d264f009 100644 (file)
@@ -118,9 +118,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
 
     {:ok, user, following, activity } = TwitterAPI.follow(user, %{"user_id" => following.id})
 
-    user = Repo.get(User, user.id)
-    follow = Repo.get(Activity, activity.id)
-
     assert user.following == [User.ap_followers(following)]
   end
 
@@ -130,9 +127,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
 
     {:ok, user, following, activity } = TwitterAPI.follow(user, %{"screen_name" => following.nickname})
 
-    user = Repo.get(User, user.id)
-    follow = Repo.get(Activity, activity.id)
-
     assert user.following == [User.ap_followers(following)]
   end