don't use global mocks in setup callbacks
This commit is contained in:
parent
b962b24e6f
commit
12635bc156
3 changed files with 8 additions and 5 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue