summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-11 11:02:33 +0400
committerLain Soykaf <lain@lain.com>2023-12-11 11:02:33 +0400
commitdd0cf0371a0c08c0876873a343acc050adc5f40b (patch)
treee50e9c9857e62d2fbfc47d0340eed1550205c756
parent54c0510d1ff61d8b1edc50f296c464d06f81e327 (diff)
downloadpleroma-dd0cf0371a0c08c0876873a343acc050adc5f40b.tar.gz
pleroma-dd0cf0371a0c08c0876873a343acc050adc5f40b.zip
AttachmentValidatorTest: Fix tests
-rw-r--r--test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs b/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
index 77f2044e9..3b8a2df86 100644
--- a/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
+++ b/test/pleroma/web/activity_pub/object_validators/attachment_validator_test.exs
@@ -5,9 +5,11 @@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidatorTest do
use Pleroma.DataCase, async: true
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidator
+ import Mox
import Pleroma.Factory
describe "attachments" do
@@ -116,6 +118,9 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidatorTest do
filename: "an_image.jpg"
}
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
{:ok, attachment} = ActivityPub.upload(file, actor: user.ap_id)
{:ok, attachment} =