mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
Fix user_test
This commit is contained in:
parent
f384a9a256
commit
aaa9fed1ca
|
@ -901,7 +901,7 @@ defmodule Pleroma.UserTest do
|
||||||
{:ok, follower} = User.follow(follower, u1)
|
{:ok, follower} = User.follow(follower, u1)
|
||||||
{:ok, u1} = User.follow(u1, friend)
|
{:ok, u1} = User.follow(u1, friend)
|
||||||
|
|
||||||
assert [friend.id, follower.id, u2.id] == Enum.map(User.search("doe", false, u1), & &1.id)
|
assert [friend.id, follower.id, u2.id] == Enum.map(User.search("doe", resolve: false, for_user: u1), & &1.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "finds a user whose name is nil" do
|
test "finds a user whose name is nil" do
|
||||||
|
@ -923,7 +923,7 @@ defmodule Pleroma.UserTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "works with URIs" do
|
test "works with URIs" do
|
||||||
results = User.search("http://mastodon.example.org/users/admin", true)
|
results = User.search("http://mastodon.example.org/users/admin", resolve: true)
|
||||||
result = results |> List.first()
|
result = results |> List.first()
|
||||||
|
|
||||||
user = User.get_by_ap_id("http://mastodon.example.org/users/admin")
|
user = User.get_by_ap_id("http://mastodon.example.org/users/admin")
|
||||||
|
|
Loading…
Reference in a new issue