Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: marcin mikołajczak <[email protected]>
  • Loading branch information
mkljczk committed Aug 29, 2024
1 parent 6e440d6 commit 00c593b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/pleroma/web/common_api_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1479,12 +1479,12 @@ defmodule Pleroma.Web.CommonAPITest 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
Expand All @@ -1494,12 +1494,12 @@ defmodule Pleroma.Web.CommonAPITest 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
Expand Down

0 comments on commit 00c593b

Please sign in to comment.