summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-11 10:49:22 +0400
committerLain Soykaf <lain@lain.com>2023-12-11 10:49:22 +0400
commit82beb4987a09d44c29a0008da3211f408ed4aced (patch)
treecef1ae927f07a17ec6fe3a80bd1f2ae17a16a680
parentf5a2337b3768ed835c860a11b5818668a2e5ff45 (diff)
downloadpleroma-82beb4987a09d44c29a0008da3211f408ed4aced.tar.gz
pleroma-82beb4987a09d44c29a0008da3211f408ed4aced.zip
MascotControllerTest: Fix tests
-rw-r--r--test/pleroma/web/pleroma_api/controllers/mascot_controller_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pleroma/web/pleroma_api/controllers/mascot_controller_test.exs b/test/pleroma/web/pleroma_api/controllers/mascot_controller_test.exs
index b72569d4b..81f09cdd1 100644
--- a/test/pleroma/web/pleroma_api/controllers/mascot_controller_test.exs
+++ b/test/pleroma/web/pleroma_api/controllers/mascot_controller_test.exs
@@ -5,8 +5,11 @@
defmodule Pleroma.Web.PleromaAPI.MascotControllerTest do
use Pleroma.Web.ConnCase, async: true
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
alias Pleroma.User
+ import Mox
+
test "mascot upload" do
%{conn: conn} = oauth_access(["write:accounts"])
@@ -29,6 +32,9 @@ defmodule Pleroma.Web.PleromaAPI.MascotControllerTest do
filename: "an_image.jpg"
}
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
conn =
conn
|> put_req_header("content-type", "multipart/form-data")
@@ -53,6 +59,9 @@ defmodule Pleroma.Web.PleromaAPI.MascotControllerTest do
filename: "an_image.jpg"
}
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
ret_conn =
conn
|> put_req_header("content-type", "multipart/form-data")