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 cb74c9f4fa3d5b83dab99f7eac1e6c120157d12e..a7a046203a5d24ef5b8aed51f0b2fed89654dde0 100644
(file)
--- a/
test/object/containment_test.exs
+++ b/
test/object/containment_test.exs
@@
-1,11
+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.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 = %{