logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: d3822269caf39023fb58ba6451b215d402f78bcf
parent e8e74146e8114a70cb02aef54b04caf5f0f9ae8d
Author: Lain Soykaf <lain@lain.com>
Date:   Mon, 11 Dec 2023 10:37:39 +0400

ObjectTest: Fix tests

Diffstat:

Mtest/pleroma/object_test.exs3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/pleroma/object_test.exs b/test/pleroma/object_test.exs @@ -7,6 +7,7 @@ defmodule Pleroma.ObjectTest do use Oban.Testing, repo: Pleroma.Repo import ExUnit.CaptureLog + import Mox import Pleroma.Factory import Tesla.Mock @@ -15,10 +16,12 @@ defmodule Pleroma.ObjectTest do alias Pleroma.Object alias Pleroma.Repo alias Pleroma.Tests.ObanHelpers + alias Pleroma.UnstubbedConfigMock, as: ConfigMock alias Pleroma.Web.CommonAPI setup do mock(fn env -> apply(HttpRequestMock, :request, [env]) end) + ConfigMock |> stub_with(Pleroma.Test.StaticConfig) :ok end