Fix most tests that call SearchIndexWorker.

This commit is contained in:
Lain Soykaf 2023-11-12 15:54:16 +04:00
commit 5996bef7cd
15 changed files with 75 additions and 0 deletions

View file

@ -19,6 +19,11 @@ defmodule Pleroma.UserTest do
import ExUnit.CaptureLog
import Swoosh.TestAssertions
setup do
Mox.stub_with(Pleroma.UnstubbedConfigMock, Pleroma.Config)
:ok
end
setup_all do
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
:ok