projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/gopher' into 'develop'
[akkoma]
/
test
/
object
/
containment_test.exs
diff --git
a/test/object/containment_test.exs
b/test/object/containment_test.exs
index fcedb2283cbeb6fd36a428c840d01cd85d0266bb..4520640939f7d72b26193be97fdc18af30a93558 100644
(file)
--- a/
test/object/containment_test.exs
+++ b/
test/object/containment_test.exs
@@
-1,9
+1,8
@@
defmodule Pleroma.Object.ContainmentTest do
use Pleroma.DataCase
defmodule Pleroma.Object.ContainmentTest do
use Pleroma.DataCase
- alias Pleroma.User
alias Pleroma.Object.Containment
alias Pleroma.Object.Containment
- alias Pleroma.
Web.ActivityPub.ActivityPub
+ alias Pleroma.
User
import Pleroma.Factory
import Pleroma.Factory
@@
-45,7
+44,7
@@
defmodule Pleroma.Object.ContainmentTest do
end
test "users cannot be collided through fake direction spoofing attempts" do
end
test "users cannot be collided through fake direction spoofing attempts" do
- user =
+
_
user =
insert(:user, %{
nickname: "rye@niu.moe",
local: false,
insert(:user, %{
nickname: "rye@niu.moe",
local: false,
@@
-55,12
+54,5
@@
defmodule Pleroma.Object.ContainmentTest do
{:error, _} = User.get_or_fetch_by_ap_id("https://n1u.moe/users/rye")
end
{:error, _} = User.get_or_fetch_by_ap_id("https://n1u.moe/users/rye")
end
-
- test "all objects with fake directions are rejected by the object fetcher" do
- {:error, _} =
- ActivityPub.fetch_and_contain_remote_object_from_id(
- "https://info.pleroma.site/activity4.json"
- )
- end
end
end
end
end