forked from AkkomaGang/akkoma
Fix tests
This commit is contained in:
parent
1fb9452131
commit
98f32cf820
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
defmodule Pleroma.Web.PleromaAPI.BackupController do
|
defmodule Pleroma.Web.PleromaAPI.BackupController do
|
||||||
use Pleroma.Web, :controller
|
use Pleroma.Web, :controller
|
||||||
|
|
||||||
alias Pleroma.Plugs.OAuthScopesPlug
|
alias Pleroma.Web.Plugs.OAuthScopesPlug
|
||||||
|
|
||||||
action_fallback(Pleroma.Web.MastodonAPI.FallbackController)
|
action_fallback(Pleroma.Web.MastodonAPI.FallbackController)
|
||||||
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create])
|
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create])
|
||||||
|
|
|
@ -19,7 +19,7 @@ defmodule Pleroma.BackupTest do
|
||||||
setup do
|
setup do
|
||||||
clear_config([Pleroma.Upload, :uploader])
|
clear_config([Pleroma.Upload, :uploader])
|
||||||
clear_config([Pleroma.Backup, :limit_days])
|
clear_config([Pleroma.Backup, :limit_days])
|
||||||
clear_config([Pleroma.Emails.Mailer, :enabled])
|
clear_config([Pleroma.Emails.Mailer, :enabled], true)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it requries enabled email" do
|
test "it requries enabled email" do
|
||||||
|
|
Loading…
Reference in a new issue