projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Merge branch 'revert-4fabf83a' into 'develop'"
[akkoma]
/
test
/
emails
/
mailer_test.exs
diff --git
a/test/emails/mailer_test.exs
b/test/emails/mailer_test.exs
index 450bb09c74e58e90db1d836135260e1a6e1125c2..ae5effb7ad1a1cf6b5cb6b79e005bd6c2923245e 100644
(file)
--- a/
test/emails/mailer_test.exs
+++ b/
test/emails/mailer_test.exs
@@
-15,11
+15,7
@@
defmodule Pleroma.Emails.MailerTest do
to: [{"Test User", "user1@example.com"}]
}
to: [{"Test User", "user1@example.com"}]
}
- setup do
- value = Pleroma.Config.get([Pleroma.Emails.Mailer, :enabled])
- on_exit(fn -> Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], value) end)
- :ok
- end
+ clear_config([Pleroma.Emails.Mailer, :enabled])
test "not send email when mailer is disabled" do
Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false)
test "not send email when mailer is disabled" do
Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false)