projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sanitize HTML in ReportView
[akkoma]
/
test
/
object
/
containment_test.exs
diff --git
a/test/object/containment_test.exs
b/test/object/containment_test.exs
index 268675c86b34b0d6a185c11f9076c3eeec68d9f1..a7a046203a5d24ef5b8aed51f0b2fed89654dde0 100644
(file)
--- a/
test/object/containment_test.exs
+++ b/
test/object/containment_test.exs
@@
-1,12
+1,16
@@
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
+ setup_all do
+ Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
+ :ok
+ end
+
describe "general origin containment" do
test "contain_origin_from_id() catches obvious spoofing attempts" do
data = %{
describe "general origin containment" do
test "contain_origin_from_id() catches obvious spoofing attempts" do
data = %{
@@
-45,7
+49,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,