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,8 +13,8 @@ defmodule Pleroma.Web.Push.ImplTest do
import Pleroma.Factory
setup_all do
Tesla.Mock.mock_global(fn
setup do
Tesla.Mock.mock(fn
%{method: :post, url: "https://example.com/example/1234"} ->
%Tesla.Env{status: 200}