mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-25 10:17:44 +01:00
test: add regression test for #316
This commit is contained in:
parent
2c29329d39
commit
ebc32045f0
@ -55,6 +55,15 @@ defmodule Pleroma.UserTest do
|
|||||||
{:error, _} = User.follow(blockee, blocker)
|
{:error, _} = User.follow(blockee, blocker)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "local users do not automatically follow local locked accounts" do
|
||||||
|
follower = insert(:user, info: %{"locked" => true})
|
||||||
|
followed = insert(:user, info: %{"locked" => true})
|
||||||
|
|
||||||
|
{:ok, follower} = User.maybe_direct_follow(follower, followed)
|
||||||
|
|
||||||
|
refute User.following?(follower, followed)
|
||||||
|
end
|
||||||
|
|
||||||
# This is a somewhat useless test.
|
# This is a somewhat useless test.
|
||||||
# test "following a remote user will ensure a websub subscription is present" do
|
# test "following a remote user will ensure a websub subscription is present" do
|
||||||
# user = insert(:user)
|
# user = insert(:user)
|
||||||
|
Loading…
Reference in New Issue
Block a user