Add missing HTTP Request mocks

This commit is contained in:
Sergey Suprunenko 2019-06-04 05:46:19 +00:00 committed by kaniini
commit 84cc131b59
2 changed files with 26 additions and 0 deletions

View file

@ -6,6 +6,11 @@ defmodule Pleroma.Object.ContainmentTest do
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 = %{