Fix test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
6e440d619a
commit
00c593b92d
1 changed files with 4 additions and 4 deletions
|
@ -1479,12 +1479,12 @@ test "directly follows back a locked, but followback-allowing local user" do
|
|||
uselective = insert(:user, is_locked: true, permit_followback: true)
|
||||
|
||||
assert {:ok, uselective, uopen, %{data: %{"state" => "accept"}}} =
|
||||
CommonAPI.follow(uselective, uopen)
|
||||
CommonAPI.follow(uopen, uselective)
|
||||
|
||||
assert User.get_follow_state(uselective, uopen) == :follow_accept
|
||||
|
||||
assert {:ok, uopen, uselective, %{data: %{"state" => "accept"}}} =
|
||||
CommonAPI.follow(uopen, uselective)
|
||||
CommonAPI.follow(uselective, uopen)
|
||||
|
||||
assert User.get_follow_state(uopen, uselective) == :follow_accept
|
||||
end
|
||||
|
@ -1494,12 +1494,12 @@ test "creates a pending request for locked, non-followback local user" do
|
|||
ulocked = insert(:user, is_locked: true, permit_followback: false)
|
||||
|
||||
assert {:ok, ulocked, uopen, %{data: %{"state" => "accept"}}} =
|
||||
CommonAPI.follow(ulocked, uopen)
|
||||
CommonAPI.follow(uopen, ulocked)
|
||||
|
||||
assert User.get_follow_state(ulocked, uopen) == :follow_accept
|
||||
|
||||
assert {:ok, uopen, ulocked, %{data: %{"state" => "pending"}}} =
|
||||
CommonAPI.follow(uopen, ulocked)
|
||||
CommonAPI.follow(ulocked, uopen)
|
||||
|
||||
assert User.get_follow_state(uopen, ulocked) == :follow_pending
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue