fix tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
e44bcd1106
commit
d47447afae
2 changed files with 6 additions and 6 deletions
|
@ -1481,12 +1481,12 @@ test "directly follows back a locked, but followback-allowing local user" do
|
||||||
assert {:ok, uselective, uopen, %{data: %{"state" => "accept"}}} =
|
assert {:ok, uselective, uopen, %{data: %{"state" => "accept"}}} =
|
||||||
CommonAPI.follow(uopen, uselective)
|
CommonAPI.follow(uopen, uselective)
|
||||||
|
|
||||||
assert User.get_follow_state(uselective, uopen) == :follow_accept
|
assert User.get_follow_state(uopen, uselective) == :follow_accept
|
||||||
|
|
||||||
assert {:ok, uopen, uselective, %{data: %{"state" => "accept"}}} =
|
assert {:ok, uopen, uselective, %{data: %{"state" => "accept"}}} =
|
||||||
CommonAPI.follow(uselective, uopen)
|
CommonAPI.follow(uselective, uopen)
|
||||||
|
|
||||||
assert User.get_follow_state(uopen, uselective) == :follow_accept
|
assert User.get_follow_state(uselective, uopen) == :follow_accept
|
||||||
end
|
end
|
||||||
|
|
||||||
test "creates a pending request for locked, non-followback local user" do
|
test "creates a pending request for locked, non-followback local user" do
|
||||||
|
@ -1496,12 +1496,12 @@ test "creates a pending request for locked, non-followback local user" do
|
||||||
assert {:ok, ulocked, uopen, %{data: %{"state" => "accept"}}} =
|
assert {:ok, ulocked, uopen, %{data: %{"state" => "accept"}}} =
|
||||||
CommonAPI.follow(uopen, ulocked)
|
CommonAPI.follow(uopen, ulocked)
|
||||||
|
|
||||||
assert User.get_follow_state(ulocked, uopen) == :follow_accept
|
assert User.get_follow_state(uopen, ulocked) == :follow_accept
|
||||||
|
|
||||||
assert {:ok, uopen, ulocked, %{data: %{"state" => "pending"}}} =
|
assert {:ok, uopen, ulocked, %{data: %{"state" => "pending"}}} =
|
||||||
CommonAPI.follow(ulocked, uopen)
|
CommonAPI.follow(ulocked, uopen)
|
||||||
|
|
||||||
assert User.get_follow_state(uopen, ulocked) == :follow_pending
|
assert User.get_follow_state(ulocked, uopen) == :follow_pending
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1090,9 +1090,9 @@ test "with `%{local: true, federated: false}`, forbids unauthenticated access to
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "bubble" do
|
describe "bubble" do
|
||||||
setup do: oauth_access(["read:statuses"])
|
test "filtering" do
|
||||||
|
%{conn: conn, user: user} = oauth_access(["read:statuses"])
|
||||||
|
|
||||||
test "filtering", %{conn: conn, user: user} do
|
|
||||||
clear_config([:instance, :local_bubble], [])
|
clear_config([:instance, :local_bubble], [])
|
||||||
# our endpoint host has a port in it so let's set the AP ID
|
# our endpoint host has a port in it so let's set the AP ID
|
||||||
local_user = insert(:user, %{ap_id: "https://localhost/users/user"})
|
local_user = insert(:user, %{ap_id: "https://localhost/users/user"})
|
||||||
|
|
Loading…
Reference in a new issue