Lint and fix test to match new log message

This commit is contained in:
Mark Felder 2020-07-14 13:15:37 -05:00
부모 37297a8482
커밋 777a7edc6b
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -34,7 +34,8 @@ defmodule Pleroma.ApplicationRequirements do
"Account activation enabled, but no Mailer settings enabled.\nPlease set config :pleroma, :instance, account_activation_required: false\nOtherwise setup and enable Mailer."
)
{:error, "Account activation enabled, but Mailer is disabled. Cannot send confirmation emails."}
{:error,
"Account activation enabled, but Mailer is disabled. Cannot send confirmation emails."}
else
:ok
end

파일 보기

@ -26,7 +26,7 @@ defmodule Pleroma.ApplicationRequirementsTest do
Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false)
assert_raise Pleroma.ApplicationRequirements.VerifyError,
"Confirmation account: Mailer is disabled",
"Account activation enabled, but Mailer is disabled. Cannot send confirmation emails.",
fn ->
capture_log(&Pleroma.ApplicationRequirements.verify!/0)
end