don't use global mocks in setup callbacks

This commit is contained in:
Alexander Strizhakov 2020-05-13 09:20:25 +03:00
commit 12635bc156
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 8 additions and 5 deletions

View file

@ -13,7 +13,7 @@ defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
import Tesla.Mock
import Mock
setup do
setup_all do
mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
:ok
end