mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-19 18:18:07 +00:00
set upload to local for failing tests
All of these turned out to also have their upload set to S3 with default values. That made the tests fail because the default S3 values don't work.
This commit is contained in:
parent
a4097e0802
commit
8a16504ce1
|
@ -11,10 +11,11 @@ defmodule Pleroma.Web.MastodonAPI.MediaControllerTest do
|
|||
alias Pleroma.User
|
||||
alias Pleroma.Web.ActivityPub.ActivityPub
|
||||
|
||||
setup do: clear_config([Pleroma.Upload, :uploader], Pleroma.Uploaders.Local)
|
||||
setup do: clear_config([Pleroma.Uploaders.Local, :uploads], "uploads")
|
||||
|
||||
describe "Upload media" do
|
||||
setup do: oauth_access(["write:media"])
|
||||
setup do: clear_config([Pleroma.Upload, :uploader], Pleroma.Uploaders.Local)
|
||||
setup do: clear_config([Pleroma.Uploaders.Local, :uploads], "uploads")
|
||||
|
||||
setup do
|
||||
image = %Plug.Upload{
|
||||
|
|
|
@ -9,7 +9,8 @@ defmodule Pleroma.Web.PleromaAPI.BackupControllerTest do
|
|||
alias Pleroma.Web.PleromaAPI.BackupView
|
||||
|
||||
setup do
|
||||
clear_config([Pleroma.Upload, :uploader])
|
||||
clear_config([Pleroma.Upload, :uploader], Pleroma.Uploaders.Local)
|
||||
clear_config([Pleroma.Uploaders.Local, :uploads], "uploads")
|
||||
clear_config([Backup, :limit_days])
|
||||
oauth_access(["read:accounts"])
|
||||
end
|
||||
|
|
|
@ -428,6 +428,8 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowControllerTest do
|
|||
|
||||
test "with media proxy" do
|
||||
clear_config([:media_proxy, :enabled], true)
|
||||
clear_config([Pleroma.Upload, :uploader], Pleroma.Uploaders.Local)
|
||||
clear_config([Pleroma.Uploaders.Local, :uploads], "uploads")
|
||||
|
||||
user =
|
||||
insert(:user, %{
|
||||
|
|
Loading…
Reference in a new issue