update test

This commit is contained in:
Maksim Pechnikov 2018-12-04 14:01:39 +03:00
commit a9e4a97586
7 changed files with 83 additions and 11 deletions

View file

@ -11,11 +11,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
import Pleroma.Factory
alias Pleroma.Web.CommonAPI
import Tesla.Mock
setup do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
setup_all do
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
:ok
end