projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e632d
)
Remove unnecesary queries
author
dtluna
<dtluna@openmailbox.org>
Sun, 16 Apr 2017 14:41:30 +0000
(17:41 +0300)
committer
dtluna
<dtluna@openmailbox.org>
Sun, 16 Apr 2017 14:42:15 +0000
(17:42 +0300)
test/web/twitter_api/twitter_api_test.exs
patch
|
blob
|
history
diff --git
a/test/web/twitter_api/twitter_api_test.exs
b/test/web/twitter_api/twitter_api_test.exs
index eda1c8c1c2d5fcff83b33a03743dafa694577332..4993da3edee9a6be4d2ae1381a462362d264f009 100644
(file)
--- a/
test/web/twitter_api/twitter_api_test.exs
+++ b/
test/web/twitter_api/twitter_api_test.exs
@@
-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