Also remove Repo functions in the tests
This commit is contained in:
parent
b5a2d384f7
commit
c746087f57
@ -89,8 +89,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
"followed" => user.nickname
|
"followed" => user.nickname
|
||||||
})
|
})
|
||||||
|
|
||||||
user = Repo.get(User, user.id)
|
user = User.get_by_nickname(user.id)
|
||||||
follower = Repo.get(User, follower.id)
|
follower = User.get_by_nickname(follower.id)
|
||||||
|
|
||||||
assert User.following?(follower, user)
|
assert User.following?(follower, user)
|
||||||
end
|
end
|
||||||
@ -113,8 +113,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
"followed" => user.nickname
|
"followed" => user.nickname
|
||||||
})
|
})
|
||||||
|
|
||||||
user = Repo.get(User, user.id)
|
user = User.get_by_nickname(user.id)
|
||||||
follower = Repo.get(User, follower.id)
|
follower = User.get_by_nickname(follower.id)
|
||||||
|
|
||||||
refute User.following?(follower, user)
|
refute User.following?(follower, user)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user