summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-11 11:01:07 +0400
committerLain Soykaf <lain@lain.com>2023-12-11 11:01:07 +0400
commit54c0510d1ff61d8b1edc50f296c464d06f81e327 (patch)
tree55636e1f5412a3fc82c8dc858ca76de49908ac00
parentdec524e7da2fe9594b645c452c42f37da5ee035f (diff)
downloadpleroma-54c0510d1ff61d8b1edc50f296c464d06f81e327.tar.gz
pleroma-54c0510d1ff61d8b1edc50f296c464d06f81e327.zip
Push.ImplTest: Fix tests
-rw-r--r--test/pleroma/web/push/impl_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pleroma/web/push/impl_test.exs b/test/pleroma/web/push/impl_test.exs
index 2eee0acd9..3ceea3d71 100644
--- a/test/pleroma/web/push/impl_test.exs
+++ b/test/pleroma/web/push/impl_test.exs
@@ -5,10 +5,12 @@
defmodule Pleroma.Web.Push.ImplTest do
use Pleroma.DataCase, async: true
+ import Mox
import Pleroma.Factory
alias Pleroma.Notification
alias Pleroma.Object
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.CommonAPI
@@ -257,6 +259,9 @@ defmodule Pleroma.Web.Push.ImplTest do
filename: "an_image.jpg"
}
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
{:ok, upload} = ActivityPub.upload(file, actor: user.ap_id)
{:ok, chat} = CommonAPI.post_chat_message(user, recipient, nil, media_id: upload.id)