Fix tests

This commit is contained in:
Egor Kislitsyn 2020-10-19 15:30:32 +04:00
父節點 1fb9452131
當前提交 98f32cf820
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 1B49CB15B71E7805
共有 2 個文件被更改,包括 2 次插入2 次删除

查看文件

@ -5,7 +5,7 @@
defmodule Pleroma.Web.PleromaAPI.BackupController do
use Pleroma.Web, :controller
alias Pleroma.Plugs.OAuthScopesPlug
alias Pleroma.Web.Plugs.OAuthScopesPlug
action_fallback(Pleroma.Web.MastodonAPI.FallbackController)
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create])

查看文件

@ -19,7 +19,7 @@ defmodule Pleroma.BackupTest do
setup do
clear_config([Pleroma.Upload, :uploader])
clear_config([Pleroma.Backup, :limit_days])
clear_config([Pleroma.Emails.Mailer, :enabled])
clear_config([Pleroma.Emails.Mailer, :enabled], true)
end
test "it requries enabled email" do